1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Prevent caption listing of private videos

This commit is contained in:
Chocobozzz 2022-01-06 13:27:29 +01:00
parent 7b54a81ccc
commit 795212f7ac
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 86 additions and 22 deletions

View file

@ -48,7 +48,7 @@ export {
// ---------------------------------------------------------------------------
async function listVideoCaptions (req: express.Request, res: express.Response) {
const data = await VideoCaptionModel.listVideoCaptions(res.locals.videoId.id)
const data = await VideoCaptionModel.listVideoCaptions(res.locals.onlyVideo.id)
return res.json(getFormattedObjects(data, data.length))
}