Skip to content

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

Fix videos list for api SQL request

Chocobozzz76564702b7be
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 7624b06490..946be60958 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -225,7 +225,8 @@ type AvailableForListIDsOptions = {
},
include: [
{
- model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] })
+ model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] }),
+ required: true
}
]
}
@@ -1566,8 +1567,8 @@ export class VideoModel extends Model<VideoModel> {
apiScope.push({
method: [
ScopeNames.FOR_API, {
- ids, withFiles:
- options.withFiles,
+ ids,
+ withFiles: options.withFiles,
videoPlaylistId: options.videoPlaylistId
} as ForAPIOptions
]