diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-06 13:27:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-06 13:27:29 +0100 |
commit | 795212f7acc690c88c86d0fab8772f6564d59cb8 (patch) | |
tree | 3a0203fc1957fd8cf8876774051137a0b04236fc /server/controllers/api/videos/captions.ts | |
parent | 7b54a81cccf6b4c12269e9d6897d608b1a99537a (diff) | |
download | PeerTube-795212f7acc690c88c86d0fab8772f6564d59cb8.tar.gz PeerTube-795212f7acc690c88c86d0fab8772f6564d59cb8.tar.zst PeerTube-795212f7acc690c88c86d0fab8772f6564d59cb8.zip |
Prevent caption listing of private videos
Diffstat (limited to 'server/controllers/api/videos/captions.ts')
-rw-r--r-- | server/controllers/api/videos/captions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/captions.ts b/server/controllers/api/videos/captions.ts index 2d2213327..aa7259ee9 100644 --- a/server/controllers/api/videos/captions.ts +++ b/server/controllers/api/videos/captions.ts | |||
@@ -48,7 +48,7 @@ export { | |||
48 | // --------------------------------------------------------------------------- | 48 | // --------------------------------------------------------------------------- |
49 | 49 | ||
50 | async function listVideoCaptions (req: express.Request, res: express.Response) { | 50 | async function listVideoCaptions (req: express.Request, res: express.Response) { |
51 | const data = await VideoCaptionModel.listVideoCaptions(res.locals.videoId.id) | 51 | const data = await VideoCaptionModel.listVideoCaptions(res.locals.onlyVideo.id) |
52 | 52 | ||
53 | return res.json(getFormattedObjects(data, data.length)) | 53 | return res.json(getFormattedObjects(data, data.length)) |
54 | } | 54 | } |