aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index a65a03e38..4251afce9 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -15,6 +15,7 @@ import { ActorModel } from '../activitypub/actor'
15import { getSort, throwIfNotValid } from '../utils' 15import { getSort, throwIfNotValid } from '../utils'
16import { VideoModel } from './video' 16import { VideoModel } from './video'
17import { CONSTRAINTS_FIELDS } from '../../initializers' 17import { CONSTRAINTS_FIELDS } from '../../initializers'
18import { AvatarModel } from '../avatar/avatar'
18 19
19enum ScopeNames { 20enum ScopeNames {
20 WITH_ACCOUNT = 'WITH_ACCOUNT', 21 WITH_ACCOUNT = 'WITH_ACCOUNT',
@@ -39,7 +40,13 @@ enum ScopeNames {
39 include: [ 40 include: [
40 { 41 {
41 model: () => ActorModel.unscoped(), 42 model: () => ActorModel.unscoped(),
42 required: true 43 required: true,
44 include: [
45 {
46 model: () => AvatarModel.unscoped(),
47 required: false
48 }
49 ]
43 } 50 }
44 ] 51 ]
45 } 52 }