mirror of https://github.com/Chocobozzz/PeerTube
Fix avatar image in channel page
parent
53055a1124
commit
c305467cd7
|
@ -15,6 +15,7 @@ import { ActorModel } from '../activitypub/actor'
|
||||||
import { getSort, throwIfNotValid } from '../utils'
|
import { getSort, throwIfNotValid } from '../utils'
|
||||||
import { VideoModel } from './video'
|
import { VideoModel } from './video'
|
||||||
import { CONSTRAINTS_FIELDS } from '../../initializers'
|
import { CONSTRAINTS_FIELDS } from '../../initializers'
|
||||||
|
import { AvatarModel } from '../avatar/avatar'
|
||||||
|
|
||||||
enum ScopeNames {
|
enum ScopeNames {
|
||||||
WITH_ACCOUNT = 'WITH_ACCOUNT',
|
WITH_ACCOUNT = 'WITH_ACCOUNT',
|
||||||
|
@ -39,7 +40,13 @@ enum ScopeNames {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
model: () => ActorModel.unscoped(),
|
model: () => ActorModel.unscoped(),
|
||||||
required: true
|
required: true,
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
model: () => AvatarModel.unscoped(),
|
||||||
|
required: false
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue