diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker-before-init.ts | 3 | ||||
-rw-r--r-- | server/initializers/constants.ts | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index e26f38564..a9896907d 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts | |||
@@ -24,7 +24,8 @@ function checkMissedConfig () { | |||
24 | 'trending.videos.interval_days', | 24 | 'trending.videos.interval_days', |
25 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', | 25 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', |
26 | 'instance.is_nsfw', 'instance.default_nsfw_policy', 'instance.robots', 'instance.securitytxt', | 26 | 'instance.is_nsfw', 'instance.default_nsfw_policy', 'instance.robots', 'instance.securitytxt', |
27 | 'services.twitter.username', 'services.twitter.whitelisted' | 27 | 'services.twitter.username', 'services.twitter.whitelisted', |
28 | 'followers.instance.enabled' | ||
28 | ] | 29 | ] |
29 | const requiredAlternatives = [ | 30 | const requiredAlternatives = [ |
30 | [ // set | 31 | [ // set |
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index ac19231d0..43c5ec54c 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -324,6 +324,11 @@ const CONFIG = { | |||
324 | get USERNAME () { return config.get<string>('services.twitter.username') }, | 324 | get USERNAME () { return config.get<string>('services.twitter.username') }, |
325 | get WHITELISTED () { return config.get<boolean>('services.twitter.whitelisted') } | 325 | get WHITELISTED () { return config.get<boolean>('services.twitter.whitelisted') } |
326 | } | 326 | } |
327 | }, | ||
328 | FOLLOWERS: { | ||
329 | INSTANCE: { | ||
330 | get ENABLED () { return config.get<boolean>('followers.instance.enabled') } | ||
331 | } | ||
327 | } | 332 | } |
328 | } | 333 | } |
329 | 334 | ||