1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Use dedicated hooks for account/channel videos

This commit is contained in:
Chocobozzz 2020-12-08 10:30:33 +01:00 committed by Chocobozzz
parent 1bfc07e4cc
commit 38267c0c8a
5 changed files with 74 additions and 8 deletions

View file

@ -5,6 +5,15 @@ export const serverFilterHookObject = {
// (used by the trending page, recently-added page, local page etc)
'filter:api.videos.list.params': true,
'filter:api.videos.list.result': true,
// Filter params/result used to list account videos for the REST API
'filter:api.accounts.videos.list.params': true,
'filter:api.accounts.videos.list.result': true,
// Filter params/result used to list account videos for the REST API
'filter:api.video-channels.videos.list.params': true,
'filter:api.video-channels.videos.list.result': true,
// Filter the result of the get function
// Used to get detailed video information (video watch page for example)
'filter:api.video.get.result': true,