aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/server-hook.model.ts
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2021-06-28 09:22:15 +0200
committerGitHub <noreply@github.com>2021-06-28 09:22:15 +0200
commite2e0b645cdac3c705b1988fbb0eff723ad5e885d (patch)
tree0e8d7d5d7bfbd5815f89e1444b693d5a7662a6a7 /shared/models/plugins/server/server-hook.model.ts
parent3e84ae325088320c49dd07de2d3a0d020151002e (diff)
downloadPeerTube-e2e0b645cdac3c705b1988fbb0eff723ad5e885d.tar.gz
PeerTube-e2e0b645cdac3c705b1988fbb0eff723ad5e885d.tar.zst
PeerTube-e2e0b645cdac3c705b1988fbb0eff723ad5e885d.zip
Add video-playlist-element.created hook (#4196)
* add playlists.videos.list.params/results hooks closes #4192 * Revert "add playlists.videos.list.params/results hooks" This reverts commit ebd822ca0b769d88dbc5ae0062b286238cbced92. * add video-playlist-element.created hook closes #4192 * test: add playlist-element.created * Fix tests Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'shared/models/plugins/server/server-hook.model.ts')
-rw-r--r--shared/models/plugins/server/server-hook.model.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index dae243dbf..5f29534b5 100644
--- a/shared/models/plugins/server/server-hook.model.ts
+++ b/shared/models/plugins/server/server-hook.model.ts
@@ -114,7 +114,10 @@ export const serverActionHookObject = {
114 'action:api.user.updated': true, 114 'action:api.user.updated': true,
115 115
116 // Fired when a user got a new oauth2 token 116 // Fired when a user got a new oauth2 token
117 'action:api.user.oauth2-got-token': true 117 'action:api.user.oauth2-got-token': true,
118
119 // Fired when a video is added to a playlist
120 'action:api.video-playlist-element.created': true
118} 121}
119 122
120export type ServerActionHookName = keyof typeof serverActionHookObject 123export type ServerActionHookName = keyof typeof serverActionHookObject