aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-13 10:24:28 +0100
committerChocobozzz <me@florianbigard.com>2018-03-13 10:24:28 +0100
commit066e94c5382a761180c7d82fa24b31b66dbeaca4 (patch)
tree36037c2c5aaa6c86c2299ceafe6ec35dd1abbd13 /server/controllers/api
parent66c3b7744c6c7a91b9538eb5a6e0ae07e0a5a6af (diff)
downloadPeerTube-066e94c5382a761180c7d82fa24b31b66dbeaca4.tar.gz
PeerTube-066e94c5382a761180c7d82fa24b31b66dbeaca4.tar.zst
PeerTube-066e94c5382a761180c7d82fa24b31b66dbeaca4.zip
Add "local" videos in menu
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 10b309cd1..690872320 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -388,7 +388,7 @@ async function getVideoDescription (req: express.Request, res: express.Response)
388} 388}
389 389
390async function listVideos (req: express.Request, res: express.Response, next: express.NextFunction) { 390async function listVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
391 const resultList = await VideoModel.listForApi(req.query.start, req.query.count, req.query.sort) 391 const resultList = await VideoModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.filter)
392 392
393 return res.json(getFormattedObjects(resultList.data, resultList.total)) 393 return res.json(getFormattedObjects(resultList.data, resultList.total))
394} 394}