Only list unlisted/public videos in outbox

pull/277/head
Chocobozzz 2018-02-04 23:04:32 +01:00
parent 1d230c4419
commit 3c75ce12d5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 1 deletions

View File

@ -486,7 +486,11 @@ export class VideoModel extends Model<VideoModel> {
where: {
id: {
[Sequelize.Op.in]: Sequelize.literal('(' + rawQuery + ')')
}
},
[Sequelize.Op.or]: [
{ privacy: VideoPrivacy.PUBLIC },
{ privacy: VideoPrivacy.UNLISTED }
]
},
include: [
{