aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/server/server-hook.model.ts8
1 files changed, 6 insertions, 2 deletions
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 @@
1// {hookType}:{api?}.{location}.{subLocation?}.{actionType}.{target} 1// {hookType}:{root}.{location}.{subLocation?}.{actionType}.{target}
2 2
3export const serverFilterHookObject = { 3export const serverFilterHookObject = {
4 // Filter params/result used to list videos for the REST API 4 // Filter params/result used to list videos for the REST API
@@ -184,7 +184,11 @@ export const serverActionHookObject = {
184 'action:api.user.oauth2-got-token': true, 184 'action:api.user.oauth2-got-token': true,
185 185
186 // Fired when a video is added to a playlist 186 // Fired when a video is added to a playlist
187 'action:api.video-playlist-element.created': true 187 'action:api.video-playlist-element.created': true,
188
189 // Fired when a remote video has been created/updated
190 'action:activity-pub.remote-video.created': true,
191 'action:activity-pub.remote-video.updated': true
188} 192}
189 193
190export type ServerActionHookName = keyof typeof serverActionHookObject 194export type ServerActionHookName = keyof typeof serverActionHookObject