1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add video AP hooks

This commit is contained in:
Chocobozzz 2023-03-16 10:36:33 +01:00
parent 30f939c4b7
commit c3441b0320
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 121 additions and 32 deletions

View file

@ -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