]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/utils/server/config.ts
Add ability to manually approves instance followers in REST API
[github/Chocobozzz/PeerTube.git] / shared / utils / server / config.ts
index 29c24cff97f6f18b99e2cea0ac83fdd575951cb7..deb77e9c0e1067f98a9a73a2b94711022dd3a056 100644 (file)
@@ -52,6 +52,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) {
       description: 'my super description',
       terms: 'my super terms',
       defaultClientRoute: '/videos/recently-added',
+      isNSFW: true,
       defaultNSFWPolicy: 'blur',
       customizations: {
         javascript: 'alert("coucou")',
@@ -111,6 +112,19 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) {
           enabled: false
         }
       }
+    },
+    autoBlacklist: {
+      videos: {
+        ofUsers: {
+          enabled: false
+        }
+      }
+    },
+    followers: {
+      instance: {
+        enabled: true,
+        manualApproval: false
+      }
     }
   }