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

Add plugin hook on registration

This commit is contained in:
Chocobozzz 2019-10-25 13:54:32 +02:00
parent 4586328858
commit 4ce7eb71ba
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 60 additions and 10 deletions

View file

@ -29,7 +29,10 @@ export const serverFilterHookObject = {
// Filter result used to check if we need to auto blacklist a video
// (fired when a local or remote video is created or updated)
'filter:video.auto-blacklist.result': true
'filter:video.auto-blacklist.result': true,
// Filter result used to check if a user can register on the instance
'filter:api.user.signup.allowed.result': true
}
export type ServerFilterHookName = keyof typeof serverFilterHookObject