aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-08 14:04:57 +0200
committerChocobozzz <me@florianbigard.com>2019-04-08 14:06:23 +0200
commit5b9c965d5aa747f29b081289f930ee215fdc23c8 (patch)
tree1c726117525230d74235e7fa986eb72e7376fb6c /shared
parent594d0c6a7c64b045c11508bb4e4b19b75b3fc557 (diff)
downloadPeerTube-5b9c965d5aa747f29b081289f930ee215fdc23c8.tar.gz
PeerTube-5b9c965d5aa747f29b081289f930ee215fdc23c8.tar.zst
PeerTube-5b9c965d5aa747f29b081289f930ee215fdc23c8.zip
Add ability to forbid followers
Diffstat (limited to 'shared')
-rw-r--r--shared/models/server/custom-config.model.ts6
-rw-r--r--shared/utils/server/config.ts5
2 files changed, 11 insertions, 0 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 1607b40a8..642ffea39 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -86,4 +86,10 @@ export interface CustomConfig {
86 } 86 }
87 } 87 }
88 88
89 followers: {
90 instance: {
91 enabled: boolean
92 }
93 }
94
89} 95}
diff --git a/shared/utils/server/config.ts b/shared/utils/server/config.ts
index eaa493a93..21c689714 100644
--- a/shared/utils/server/config.ts
+++ b/shared/utils/server/config.ts
@@ -119,6 +119,11 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) {
119 enabled: false 119 enabled: false
120 } 120 }
121 } 121 }
122 },
123 followers: {
124 instance: {
125 enabled: true
126 }
122 } 127 }
123 } 128 }
124 129