diff options
author | Chocobozzz <me@florianbigard.com> | 2019-10-25 13:54:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-10-25 13:54:32 +0200 |
commit | 4ce7eb71ba28a563336c07d10c182ff89461c72b (patch) | |
tree | 9350704adae97d145548d0b2cfdde3bd95b56dd5 /shared/models/plugins | |
parent | 45863288582a788def282ec25d437b1795510315 (diff) | |
download | PeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.tar.gz PeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.tar.zst PeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.zip |
Add plugin hook on registration
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/server-hook.model.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts index 32c7f4688..41ee28097 100644 --- a/shared/models/plugins/server-hook.model.ts +++ b/shared/models/plugins/server-hook.model.ts | |||
@@ -29,7 +29,10 @@ export const serverFilterHookObject = { | |||
29 | 29 | ||
30 | // Filter result used to check if we need to auto blacklist a video | 30 | // Filter result used to check if we need to auto blacklist a video |
31 | // (fired when a local or remote video is created or updated) | 31 | // (fired when a local or remote video is created or updated) |
32 | 'filter:video.auto-blacklist.result': true | 32 | 'filter:video.auto-blacklist.result': true, |
33 | |||
34 | // Filter result used to check if a user can register on the instance | ||
35 | 'filter:api.user.signup.allowed.result': true | ||
33 | } | 36 | } |
34 | 37 | ||
35 | export type ServerFilterHookName = keyof typeof serverFilterHookObject | 38 | export type ServerFilterHookName = keyof typeof serverFilterHookObject |