diff options
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r-- | server/controllers/api/users/me.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/users/me.ts b/server/controllers/api/users/me.ts index 83b774d3c..6bacdbbb6 100644 --- a/server/controllers/api/users/me.ts +++ b/server/controllers/api/users/me.ts | |||
@@ -25,7 +25,7 @@ import { | |||
25 | usersUpdateMeValidator, | 25 | usersUpdateMeValidator, |
26 | usersVideoRatingValidator | 26 | usersVideoRatingValidator |
27 | } from '../../../middlewares' | 27 | } from '../../../middlewares' |
28 | import { deleteMeValidator, videoImportsSortValidator, videosSortValidator } from '../../../middlewares/validators' | 28 | import { deleteMeValidator, usersVideosValidator, videoImportsSortValidator, videosSortValidator } from '../../../middlewares/validators' |
29 | import { updateAvatarValidator } from '../../../middlewares/validators/actor-image' | 29 | import { updateAvatarValidator } from '../../../middlewares/validators/actor-image' |
30 | import { AccountModel } from '../../../models/account/account' | 30 | import { AccountModel } from '../../../models/account/account' |
31 | import { AccountVideoRateModel } from '../../../models/account/account-video-rate' | 31 | import { AccountVideoRateModel } from '../../../models/account/account-video-rate' |
@@ -69,6 +69,7 @@ meRouter.get('/me/videos', | |||
69 | videosSortValidator, | 69 | videosSortValidator, |
70 | setDefaultVideosSort, | 70 | setDefaultVideosSort, |
71 | setDefaultPagination, | 71 | setDefaultPagination, |
72 | asyncMiddleware(usersVideosValidator), | ||
72 | asyncMiddleware(getUserVideos) | 73 | asyncMiddleware(getUserVideos) |
73 | ) | 74 | ) |
74 | 75 | ||
@@ -113,6 +114,7 @@ async function getUserVideos (req: express.Request, res: express.Response) { | |||
113 | count: req.query.count, | 114 | count: req.query.count, |
114 | sort: req.query.sort, | 115 | sort: req.query.sort, |
115 | search: req.query.search, | 116 | search: req.query.search, |
117 | channelId: res.locals.videoChannel?.id, | ||
116 | isLive: req.query.isLive | 118 | isLive: req.query.isLive |
117 | }, 'filter:api.user.me.videos.list.params') | 119 | }, 'filter:api.user.me.videos.list.params') |
118 | 120 | ||