Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Only list unlisted/public videos in outbox

Chocobozzz3c75ce12d5bb
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index f1b3ac169d..ff82fb3b27 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -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: [
{