aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-25 13:54:32 +0200
committerChocobozzz <me@florianbigard.com>2019-10-25 13:54:32 +0200
commit4ce7eb71ba28a563336c07d10c182ff89461c72b (patch)
tree9350704adae97d145548d0b2cfdde3bd95b56dd5 /shared/models
parent45863288582a788def282ec25d437b1795510315 (diff)
downloadPeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.tar.gz
PeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.tar.zst
PeerTube-4ce7eb71ba28a563336c07d10c182ff89461c72b.zip
Add plugin hook on registration
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/server-hook.model.ts5
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
35export type ServerFilterHookName = keyof typeof serverFilterHookObject 38export type ServerFilterHookName = keyof typeof serverFilterHookObject