aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-03 11:17:57 +0200
committerChocobozzz <me@florianbigard.com>2022-08-03 11:24:42 +0200
commit0260dc8aca952f9412a8620e433b9e16e675696e (patch)
tree6f3e6dde7242a4f61aff99fd4c35b4e7f5076314 /shared/models
parent9ca0f688e9e8558233f1a538b96a43da44e35353 (diff)
downloadPeerTube-0260dc8aca952f9412a8620e433b9e16e675696e.tar.gz
PeerTube-0260dc8aca952f9412a8620e433b9e16e675696e.tar.zst
PeerTube-0260dc8aca952f9412a8620e433b9e16e675696e.zip
Add channel server hooks
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/server/server-hook.model.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index 08da95177..5f3a5be10 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 = {
45 // Used to get detailed video information (video watch page for example) 45 // Used to get detailed video information (video watch page for example)
46 'filter:api.video.get.result': true, 46 'filter:api.video.get.result': true,
47 47
48 // Filter params/results when listing video channels
49 'filter:api.video-channels.list.params': true,
50 'filter:api.video-channels.list.result': true,
51
52 // Filter the result when getting a video channel
53 'filter:api.video-channel.get.result': true,
54
48 // Filter the result of the accept upload/live, import via torrent/url functions 55 // Filter the result of the accept upload/live, import via torrent/url functions
49 // If this function returns false then the upload is aborted with an error 56 // If this function returns false then the upload is aborted with an error
50 'filter:api.video.upload.accept.result': true, 57 'filter:api.video.upload.accept.result': true,
@@ -116,6 +123,13 @@ export const serverActionHookObject = {
116 // Fired when a local video is viewed 123 // Fired when a local video is viewed
117 'action:api.video.viewed': true, 124 'action:api.video.viewed': true,
118 125
126 // Fired when a video channel is created
127 'action:api.video-channel.created': true,
128 // Fired when a video channel is updated
129 'action:api.video-channel.updated': true,
130 // Fired when a video channel is deleted
131 'action:api.video-channel.deleted': true,
132
119 // Fired when a live video is created 133 // Fired when a live video is created
120 'action:api.live-video.created': true, 134 'action:api.live-video.created': true,
121 135