aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/server-hook.model.ts
diff options
context:
space:
mode:
authorMichael Williams <michael.williams@enspiral.com>2021-06-27 02:22:48 +1200
committerChocobozzz <me@florianbigard.com>2021-07-21 16:01:34 +0200
commit64f9b91de99eb04cad12ec7370eddc30f6fda1e5 (patch)
tree2bfb5d3d1bb851ee1261f3f7ce2e7af37d224524 /shared/models/plugins/server/server-hook.model.ts
parente19fdf5775aa43fcc766308cbc4dcd66a5d0776e (diff)
downloadPeerTube-64f9b91de99eb04cad12ec7370eddc30f6fda1e5.tar.gz
PeerTube-64f9b91de99eb04cad12ec7370eddc30f6fda1e5.tar.zst
PeerTube-64f9b91de99eb04cad12ec7370eddc30f6fda1e5.zip
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).
Diffstat (limited to 'shared/models/plugins/server/server-hook.model.ts')
-rw-r--r--shared/models/plugins/server/server-hook.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index 5f29534b5..562c6eb12 100644
--- a/shared/models/plugins/server/server-hook.model.ts
+++ b/shared/models/plugins/server/server-hook.model.ts
@@ -18,6 +18,10 @@ export const serverFilterHookObject = {
18 'filter:api.user.me.videos.list.params': true, 18 'filter:api.user.me.videos.list.params': true,
19 'filter:api.user.me.videos.list.result': true, 19 'filter:api.user.me.videos.list.result': true,
20 20
21 // Filter params/result used to list overview videos for the REST API
22 'filter:api.overviews.videos.list.params': true,
23 'filter:api.overviews.videos.list.result': true,
24
21 // Filter params/results to search videos/channels in the DB or on the remote index 25 // Filter params/results to search videos/channels in the DB or on the remote index
22 'filter:api.search.videos.local.list.params': true, 26 'filter:api.search.videos.local.list.params': true,
23 'filter:api.search.videos.local.list.result': true, 27 'filter:api.search.videos.local.list.result': true,