Skip to content

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

Add isLive DB index

Chocobozzza290fbf8214c
diff --git a/server/core/models/video/video.ts b/server/core/models/video/video.ts
index 71a3f93fb0..f418ee6c1a 100644
--- a/server/core/models/video/video.ts
+++ b/server/core/models/video/video.ts
@@ -430,6 +430,12 @@ export type ForAPIOptions = {
nsfw: true
}
},
+ {
+ fields: [ 'isLive' ], // Most of the videos are VOD
+ where: {
+ isLive: true
+ }
+ },
{
fields: [ 'remote' ], // Only index local videos
where: {