mirror of https://github.com/Chocobozzz/PeerTube
Only list unlisted/public videos in outbox
parent
1d230c4419
commit
3c75ce12d5
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue