aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-19 13:43:33 +0100
committerGitHub <noreply@github.com>2021-01-19 13:43:33 +0100
commit370240824e2fb28b314255f6c23f5ea7d6b08625 (patch)
tree6d4350fd93ea0b960bd278a948cecbdfbd2b67d7 /server/controllers
parent2264c1ceedcf27998108b8f8b706e51ed910d4fb (diff)
downloadPeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.gz
PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.zst
PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.zip
Allow users/visitors to search through an account's videos (#3589)
* WIP: account search * add search to account view * add tests for account search
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/accounts.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts
index e807b4f44..e31924a94 100644
--- a/server/controllers/api/accounts.ts
+++ b/server/controllers/api/accounts.ts
@@ -175,7 +175,8 @@ async function listAccountVideos (req: express.Request, res: express.Response) {
175 withFiles: false, 175 withFiles: false,
176 accountId: account.id, 176 accountId: account.id,
177 user: res.locals.oauth ? res.locals.oauth.token.User : undefined, 177 user: res.locals.oauth ? res.locals.oauth.token.User : undefined,
178 countVideos 178 countVideos,
179 search: req.query.search
179 }, 'filter:api.accounts.videos.list.params') 180 }, 'filter:api.accounts.videos.list.params')
180 181
181 const resultList = await Hooks.wrapPromiseFun( 182 const resultList = await Hooks.wrapPromiseFun(