]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/accounts.ts
Add ability to update the banner
[github/Chocobozzz/PeerTube.git] / server / controllers / api / accounts.ts
index 9eb29d3303c50200f7d6641ffd662f172d01c0f3..e31924a9410b5d87acfccf3d45a9aeedb954daff 100644 (file)
@@ -175,13 +175,14 @@ async function listAccountVideos (req: express.Request, res: express.Response) {
     withFiles: false,
     accountId: account.id,
     user: res.locals.oauth ? res.locals.oauth.token.User : undefined,
-    countVideos
-  }, 'filter:api.videos.list.params')
+    countVideos,
+    search: req.query.search
+  }, 'filter:api.accounts.videos.list.params')
 
   const resultList = await Hooks.wrapPromiseFun(
     VideoModel.listForApi,
     apiOptions,
-    'filter:api.videos.list.result'
+    'filter:api.accounts.videos.list.result'
   )
 
   return res.json(getFormattedObjects(resultList.data, resultList.total))