From: Chocobozzz Date: Sun, 4 Feb 2018 22:04:32 +0000 (+0100) Subject: Only list unlisted/public videos in outbox X-Git-Tag: v0.0.21-alpha~16 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d;p=github%2FChocobozzz%2FPeerTube.git Only list unlisted/public videos in outbox --- 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: [ {