mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02: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:
parent
3e84ae3250
commit
e2e0b645cd
4 changed files with 49 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue