diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-16 10:36:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-16 10:36:33 +0100 |
commit | c3441b0320f632e22318261bcd614d10187de22d (patch) | |
tree | e5273fa7d232d52169f59d17a8aa5f6a908c8ed1 /shared/models/plugins/server | |
parent | 30f939c4b785e8cf2ad829a86f4b2f5892c2fda8 (diff) | |
download | PeerTube-c3441b0320f632e22318261bcd614d10187de22d.tar.gz PeerTube-c3441b0320f632e22318261bcd614d10187de22d.tar.zst PeerTube-c3441b0320f632e22318261bcd614d10187de22d.zip |
Add video AP hooks
Diffstat (limited to 'shared/models/plugins/server')
-rw-r--r-- | shared/models/plugins/server/server-hook.model.ts | 8 |
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 | ||
3 | export const serverFilterHookObject = { | 3 | export 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 | ||
190 | export type ServerActionHookName = keyof typeof serverActionHookObject | 194 | export type ServerActionHookName = keyof typeof serverActionHookObject |