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