From 3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 4 Feb 2018 23:04:32 +0100 Subject: [PATCH] Only list unlisted/public videos in outbox --- server/models/video/video.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { where: { id: { [Sequelize.Op.in]: Sequelize.literal('(' + rawQuery + ')') - } + }, + [Sequelize.Op.or]: [ + { privacy: VideoPrivacy.PUBLIC }, + { privacy: VideoPrivacy.UNLISTED } + ] }, include: [ { -- 2.41.0