aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index d748e81bd..aa1878caa 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -68,6 +68,7 @@ import { sendDeleteVideo } from '../../lib/activitypub/send'
68import { AccountModel } from '../account/account' 68import { AccountModel } from '../account/account'
69import { AccountVideoRateModel } from '../account/account-video-rate' 69import { AccountVideoRateModel } from '../account/account-video-rate'
70import { ActorModel } from '../activitypub/actor' 70import { ActorModel } from '../activitypub/actor'
71import { AvatarModel } from '../avatar/avatar'
71import { ServerModel } from '../server/server' 72import { ServerModel } from '../server/server'
72import { getSort, throwIfNotValid } from '../utils' 73import { getSort, throwIfNotValid } from '../utils'
73import { TagModel } from './tag' 74import { TagModel } from './tag'
@@ -175,6 +176,10 @@ enum ScopeNames {
175 attributes: [ 'host' ], 176 attributes: [ 'host' ],
176 model: () => ServerModel.unscoped(), 177 model: () => ServerModel.unscoped(),
177 required: false 178 required: false
179 },
180 {
181 model: () => AvatarModel.unscoped(),
182 required: false
178 } 183 }
179 ] 184 ]
180 } 185 }