1
0
Fork 0

Only list unlisted/public videos in outbox

This commit is contained in:
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

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: [
{