From 64f9b91de99eb04cad12ec7370eddc30f6fda1e5 Mon Sep 17 00:00:00 2001 From: Michael Williams Date: Sun, 27 Jun 2021 02:22:48 +1200 Subject: 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). --- shared/models/plugins/server/server-hook.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared/models/plugins') 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 = { '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, -- cgit v1.2.3