diff options
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 8c6c44144..35992e993 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -147,7 +147,7 @@ async function getVideo (_req: express.Request, res: express.Response) { | |||
147 | 147 | ||
148 | const video = await Hooks.wrapPromiseFun( | 148 | const video = await Hooks.wrapPromiseFun( |
149 | VideoModel.loadForGetAPI, | 149 | VideoModel.loadForGetAPI, |
150 | { id: res.locals.onlyVideoWithRights.id, userId }, | 150 | { id: _req.params.id, userId }, |
151 | 'filter:api.video.get.result' | 151 | 'filter:api.video.get.result' |
152 | ) | 152 | ) |
153 | 153 | ||