From e2e0b645cdac3c705b1988fbb0eff723ad5e885d Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 28 Jun 2021 09:22:15 +0200 Subject: 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 --- shared/models/plugins/server/server-hook.model.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins/server') 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 = { 'action:api.user.updated': true, // Fired when a user got a new oauth2 token - 'action:api.user.oauth2-got-token': true + 'action:api.user.oauth2-got-token': true, + + // Fired when a video is added to a playlist + 'action:api.video-playlist-element.created': true } export type ServerActionHookName = keyof typeof serverActionHookObject -- cgit v1.2.3