aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index f1b3ac169..ff82fb3b2 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -486,7 +486,11 @@ export class VideoModel extends Model<VideoModel> {
486 where: { 486 where: {
487 id: { 487 id: {
488 [Sequelize.Op.in]: Sequelize.literal('(' + rawQuery + ')') 488 [Sequelize.Op.in]: Sequelize.literal('(' + rawQuery + ')')
489 } 489 },
490 [Sequelize.Op.or]: [
491 { privacy: VideoPrivacy.PUBLIC },
492 { privacy: VideoPrivacy.UNLISTED }
493 ]
490 }, 494 },
491 include: [ 495 include: [
492 { 496 {