aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-06 13:59:50 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commit3cabf3532b9118a19311f14ca3e171d12d554a2f (patch)
tree46072616df4623d91c87f648e4033b3f1d05d404 /shared/models/plugins
parentc8f3cfeba7acc2ab9c5f03161d22856202a49326 (diff)
downloadPeerTube-3cabf3532b9118a19311f14ca3e171d12d554a2f.tar.gz
PeerTube-3cabf3532b9118a19311f14ca3e171d12d554a2f.tar.zst
PeerTube-3cabf3532b9118a19311f14ca3e171d12d554a2f.zip
Add live server hooks
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/server-hook.model.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts
index 5f812904f..6609bc893 100644
--- a/shared/models/plugins/server-hook.model.ts
+++ b/shared/models/plugins/server-hook.model.ts
@@ -9,9 +9,10 @@ export const serverFilterHookObject = {
9 // Used to get detailed video information (video watch page for example) 9 // Used to get detailed video information (video watch page for example)
10 'filter:api.video.get.result': true, 10 'filter:api.video.get.result': true,
11 11
12 // Filter the result of the accept upload, import via torrent or url functions 12 // Filter the result of the accept upload/live, import via torrent/url functions
13 // If this function returns false then the upload is aborted with an error 13 // If this function returns false then the upload is aborted with an error
14 'filter:api.video.upload.accept.result': true, 14 'filter:api.video.upload.accept.result': true,
15 'filter:api.live-video.create.accept.result': true,
15 'filter:api.video.pre-import-url.accept.result': true, 16 'filter:api.video.pre-import-url.accept.result': true,
16 'filter:api.video.pre-import-torrent.accept.result': true, 17 'filter:api.video.pre-import-torrent.accept.result': true,
17 'filter:api.video.post-import-url.accept.result': true, 18 'filter:api.video.post-import-url.accept.result': true,
@@ -54,6 +55,9 @@ export const serverActionHookObject = {
54 // Fired when a local video is viewed 55 // Fired when a local video is viewed
55 'action:api.video.viewed': true, 56 'action:api.video.viewed': true,
56 57
58 // Fired when a live video is created
59 'action:api.live-video.created': true,
60
57 // Fired when a thread is created 61 // Fired when a thread is created
58 'action:api.video-thread.created': true, 62 'action:api.video-thread.created': true,
59 // Fired when a reply to a thread is created 63 // Fired when a reply to a thread is created