aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server-hook.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-23 11:54:08 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:41 +0100
commit4bc45da342597fb49593fc14c40f8dc5a97bb64e (patch)
tree9fa876e21995b27827fbc4467bd71b8d427312e2 /shared/models/plugins/server-hook.model.ts
parentc0ab041c2c749db05ce564d3078c2ad10d18f35f (diff)
downloadPeerTube-4bc45da342597fb49593fc14c40f8dc5a97bb64e.tar.gz
PeerTube-4bc45da342597fb49593fc14c40f8dc5a97bb64e.tar.zst
PeerTube-4bc45da342597fb49593fc14c40f8dc5a97bb64e.zip
Add hooks support for video download
Diffstat (limited to 'shared/models/plugins/server-hook.model.ts')
-rw-r--r--shared/models/plugins/server-hook.model.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts
index 082b4b591..1f7806d0d 100644
--- a/shared/models/plugins/server-hook.model.ts
+++ b/shared/models/plugins/server-hook.model.ts
@@ -50,7 +50,11 @@ export const serverFilterHookObject = {
50 'filter:video.auto-blacklist.result': true, 50 'filter:video.auto-blacklist.result': true,
51 51
52 // Filter result used to check if a user can register on the instance 52 // Filter result used to check if a user can register on the instance
53 'filter:api.user.signup.allowed.result': true 53 'filter:api.user.signup.allowed.result': true,
54
55 // Filter result used to check if video/torrent download is allowed
56 'filter:api.download.video.allowed.result': true,
57 'filter:api.download.torrent.allowed.result': true
54} 58}
55 59
56export type ServerFilterHookName = keyof typeof serverFilterHookObject 60export type ServerFilterHookName = keyof typeof serverFilterHookObject