mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add new filter hooks to /overviews/videos
This change adds new filter hooks `filter:api.overviews.videos.list.params` and `filter:api.overviews.videos.list.params` to /overviews/videos. The motivation is to make a plugin to [use `originallyPublishedAt` in all places where `publishedAt` is used](https://github.com/ahdinosaur/peertube-plugin-originally-published-at).
This commit is contained in:
parent
e19fdf5775
commit
64f9b91de9
2 changed files with 14 additions and 3 deletions
|
@ -18,6 +18,10 @@ export const serverFilterHookObject = {
|
|||
'filter:api.user.me.videos.list.params': true,
|
||||
'filter:api.user.me.videos.list.result': true,
|
||||
|
||||
// Filter params/result used to list overview videos for the REST API
|
||||
'filter:api.overviews.videos.list.params': true,
|
||||
'filter:api.overviews.videos.list.result': true,
|
||||
|
||||
// Filter params/results to search videos/channels in the DB or on the remote index
|
||||
'filter:api.search.videos.local.list.params': true,
|
||||
'filter:api.search.videos.local.list.result': true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue