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 6a73e13d0..664154406 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -437,7 +437,7 @@ async function listVideos (req: express.Request, res: express.Response, next: ex | |||
437 | nsfw: buildNSFWFilter(res, req.query.nsfw), | 437 | nsfw: buildNSFWFilter(res, req.query.nsfw), |
438 | filter: req.query.filter as VideoFilter, | 438 | filter: req.query.filter as VideoFilter, |
439 | withFiles: false, | 439 | withFiles: false, |
440 | userId: res.locals.oauth ? res.locals.oauth.token.User.id : undefined | 440 | user: res.locals.oauth ? res.locals.oauth.token.User : undefined |
441 | }) | 441 | }) |
442 | 442 | ||
443 | return res.json(getFormattedObjects(resultList.data, resultList.total)) | 443 | return res.json(getFormattedObjects(resultList.data, resultList.total)) |