mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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 ebd822ca0b.
* add video-playlist-element.created hook
closes #4192
* test: add playlist-element.created
* Fix tests
Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user