From 3cabf3532b9118a19311f14ca3e171d12d554a2f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 13:59:50 +0100 Subject: Add live server hooks --- shared/models/plugins/server-hook.model.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins/server-hook.model.ts') 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 = { // Used to get detailed video information (video watch page for example) 'filter:api.video.get.result': true, - // Filter the result of the accept upload, import via torrent or url functions + // 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, + 'filter:api.live-video.create.accept.result': true, 'filter:api.video.pre-import-url.accept.result': true, 'filter:api.video.pre-import-torrent.accept.result': true, 'filter:api.video.post-import-url.accept.result': true, @@ -54,6 +55,9 @@ export const serverActionHookObject = { // Fired when a local video is viewed 'action:api.video.viewed': true, + // Fired when a live video is created + 'action:api.live-video.created': true, + // Fired when a thread is created 'action:api.video-thread.created': true, // Fired when a reply to a thread is created -- cgit v1.2.3