aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-16 10:36:33 +0100
committerChocobozzz <me@florianbigard.com>2023-03-16 10:36:33 +0100
commitc3441b0320f632e22318261bcd614d10187de22d (patch)
treee5273fa7d232d52169f59d17a8aa5f6a908c8ed1 /shared/models/plugins
parent30f939c4b785e8cf2ad829a86f4b2f5892c2fda8 (diff)
downloadPeerTube-c3441b0320f632e22318261bcd614d10187de22d.tar.gz
PeerTube-c3441b0320f632e22318261bcd614d10187de22d.tar.zst
PeerTube-c3441b0320f632e22318261bcd614d10187de22d.zip
Add video AP hooks
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