X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fserver%2Fserver-hook.model.ts;h=f11d2050b0699abfa69ccac4cfa64899a495f88d;hb=0d6843decdaecb4f726cba27fdb55fc164d00ba7;hp=08da95177eed7aee8b0513b06c400efdcc712310;hpb=ebb9e53ada156249ed8e8cfd1de74097d3eb49d7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index 08da95177..f11d2050b 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts @@ -45,6 +45,13 @@ export const serverFilterHookObject = { // Used to get detailed video information (video watch page for example) 'filter:api.video.get.result': true, + // Filter params/results when listing video channels + 'filter:api.video-channels.list.params': true, + 'filter:api.video-channels.list.result': true, + + // Filter the result when getting a video channel + 'filter:api.video-channel.get.result': true, + // Filter the result of the accept upload/live, import via torrent/url functions // If this function returns false then the upload is aborted with an error 'filter:api.video.upload.accept.result': true, @@ -95,8 +102,10 @@ export const serverFilterHookObject = { 'filter:job-queue.process.params': true, 'filter:job-queue.process.result': true, - 'filter:transcoding.manual.lower-resolutions-to-transcode.result': true, - 'filter:transcoding.auto.lower-resolutions-to-transcode.result': true + 'filter:transcoding.manual.resolutions-to-transcode.result': true, + 'filter:transcoding.auto.resolutions-to-transcode.result': true, + + 'filter:activity-pub.remote-video-comment.create.accept.result': true } export type ServerFilterHookName = keyof typeof serverFilterHookObject @@ -105,6 +114,9 @@ export const serverActionHookObject = { // Fired when the application has been loaded and is listening HTTP requests 'action:application.listening': true, + // Fired when a new notification is created + 'action:notifier.notification.created': true, + // API actions hooks give access to the original express `req` and `res` parameters // Fired when a local video is updated @@ -116,6 +128,13 @@ export const serverActionHookObject = { // Fired when a local video is viewed 'action:api.video.viewed': true, + // Fired when a video channel is created + 'action:api.video-channel.created': true, + // Fired when a video channel is updated + 'action:api.video-channel.updated': true, + // Fired when a video channel is deleted + 'action:api.video-channel.deleted': true, + // Fired when a live video is created 'action:api.live-video.created': true,