diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-04 23:04:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-04 23:04:32 +0100 |
commit | 3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d (patch) | |
tree | 1e405f394512d01e1e79f0c27b3ef19b46d295ac /server/models/video | |
parent | 1d230c441970d7b7089dba5be5d9687700533d6c (diff) | |
download | PeerTube-3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d.tar.gz PeerTube-3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d.tar.zst PeerTube-3c75ce12d5bbe34c3a97dc68ec75c7afed149f9d.zip |
Only list unlisted/public videos in outbox
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 6 |
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 | { |