diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-08 10:30:33 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-12-08 10:33:23 +0100 |
commit | 38267c0c8aa80f974a2c0b4c2bd33c8d8008ac94 (patch) | |
tree | dd99242abdd5a02de272be0f06ecfe03edadc575 /shared/models/plugins | |
parent | 1bfc07e4cca1464c87c317060eb86742344467a6 (diff) | |
download | PeerTube-38267c0c8aa80f974a2c0b4c2bd33c8d8008ac94.tar.gz PeerTube-38267c0c8aa80f974a2c0b4c2bd33c8d8008ac94.tar.zst PeerTube-38267c0c8aa80f974a2c0b4c2bd33c8d8008ac94.zip |
Use dedicated hooks for account/channel videos
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/server-hook.model.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts index 6609bc893..64d63f8f5 100644 --- a/shared/models/plugins/server-hook.model.ts +++ b/shared/models/plugins/server-hook.model.ts | |||
@@ -5,6 +5,15 @@ export const serverFilterHookObject = { | |||
5 | // (used by the trending page, recently-added page, local page etc) | 5 | // (used by the trending page, recently-added page, local page etc) |
6 | 'filter:api.videos.list.params': true, | 6 | 'filter:api.videos.list.params': true, |
7 | 'filter:api.videos.list.result': true, | 7 | 'filter:api.videos.list.result': true, |
8 | |||
9 | // Filter params/result used to list account videos for the REST API | ||
10 | 'filter:api.accounts.videos.list.params': true, | ||
11 | 'filter:api.accounts.videos.list.result': true, | ||
12 | |||
13 | // Filter params/result used to list account videos for the REST API | ||
14 | 'filter:api.video-channels.videos.list.params': true, | ||
15 | 'filter:api.video-channels.videos.list.result': true, | ||
16 | |||
8 | // Filter the result of the get function | 17 | // Filter the result of the get function |
9 | // Used to get detailed video information (video watch page for example) | 18 | // Used to get detailed video information (video watch page for example) |
10 | 'filter:api.video.get.result': true, | 19 | 'filter:api.video.get.result': true, |