diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-19 14:11:40 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | e0a929179a9dc76e035ca7fda2b61d5ff46afbc5 (patch) | |
tree | 1e6615c612ad6995dcb1c3619342dbbc7db35034 /server/controllers/api/videos | |
parent | aeb1bed9835b3b092832160245080d4023c14d91 (diff) | |
download | PeerTube-e0a929179a9dc76e035ca7fda2b61d5ff46afbc5.tar.gz PeerTube-e0a929179a9dc76e035ca7fda2b61d5ff46afbc5.tar.zst PeerTube-e0a929179a9dc76e035ca7fda2b61d5ff46afbc5.zip |
Add filter inputs for blacklisted videos and muted accounts/servers
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/blacklist.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/controllers/api/videos/blacklist.ts b/server/controllers/api/videos/blacklist.ts index 2a667480d..c4aa79cd2 100644 --- a/server/controllers/api/videos/blacklist.ts +++ b/server/controllers/api/videos/blacklist.ts | |||
@@ -102,7 +102,13 @@ async function updateVideoBlacklistController (req: express.Request, res: expres | |||
102 | } | 102 | } |
103 | 103 | ||
104 | async function listBlacklist (req: express.Request, res: express.Response) { | 104 | async function listBlacklist (req: express.Request, res: express.Response) { |
105 | const resultList = await VideoBlacklistModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.type) | 105 | const resultList = await VideoBlacklistModel.listForApi({ |
106 | start: req.query.start, | ||
107 | count: req.query.count, | ||
108 | sort: req.query.sort, | ||
109 | search: req.query.search, | ||
110 | type: req.query.type | ||
111 | }) | ||
106 | 112 | ||
107 | return res.json(getFormattedObjects(resultList.data, resultList.total)) | 113 | return res.json(getFormattedObjects(resultList.data, resultList.total)) |
108 | } | 114 | } |