aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 53328d311..55da53058 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1005,7 +1005,9 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1005 order: getVideoSort(sort), 1005 order: getVideoSort(sort),
1006 include: [ 1006 include: [
1007 { 1007 {
1008 model: VideoChannelModel, 1008 model: forCount
1009 ? VideoChannelModel.unscoped()
1010 : VideoChannelModel,
1009 required: true, 1011 required: true,
1010 where: channelWhere, 1012 where: channelWhere,
1011 include: [ 1013 include: [