From c3441b0320f632e22318261bcd614d10187de22d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Mar 2023 10:36:33 +0100 Subject: Add video AP hooks --- shared/models/plugins/server/server-hook.model.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shared/models/plugins/server') diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index ca83672d0..d2ebe936e 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts @@ -1,4 +1,4 @@ -// {hookType}:{api?}.{location}.{subLocation?}.{actionType}.{target} +// {hookType}:{root}.{location}.{subLocation?}.{actionType}.{target} export const serverFilterHookObject = { // Filter params/result used to list videos for the REST API @@ -184,7 +184,11 @@ export const serverActionHookObject = { 'action:api.user.oauth2-got-token': true, // Fired when a video is added to a playlist - 'action:api.video-playlist-element.created': true + 'action:api.video-playlist-element.created': true, + + // Fired when a remote video has been created/updated + 'action:activity-pub.remote-video.created': true, + 'action:activity-pub.remote-video.updated': true } export type ServerActionHookName = keyof typeof serverActionHookObject -- cgit v1.2.3