aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 510f7d64d..164d714d6 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -209,6 +209,19 @@ const CONFIG = {
209 get SHORT_DESCRIPTION () { return config.get<string>('instance.short_description') }, 209 get SHORT_DESCRIPTION () { return config.get<string>('instance.short_description') },
210 get DESCRIPTION () { return config.get<string>('instance.description') }, 210 get DESCRIPTION () { return config.get<string>('instance.description') },
211 get TERMS () { return config.get<string>('instance.terms') }, 211 get TERMS () { return config.get<string>('instance.terms') },
212 get CODE_OF_CONDUCT () { return config.get<string>('instance.code_of_conduct') },
213
214 get CREATION_REASON () { return config.get<string>('instance.creation_reason') },
215
216 get MODERATION_INFORMATION () { return config.get<string>('instance.moderation_information') },
217 get ADMINISTRATOR () { return config.get<string>('instance.administrator') },
218 get MAINTENANCE_LIFETIME () { return config.get<string>('instance.maintenance_lifetime') },
219 get BUSINESS_MODEL () { return config.get<string>('instance.business_model') },
220 get HARDWARE_INFORMATION () { return config.get<string>('instance.hardware_information') },
221
222 get LANGUAGES () { return config.get<string[]>('instance.languages') || [] },
223 get CATEGORIES () { return config.get<number[]>('instance.categories') || [] },
224
212 get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') }, 225 get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') },
213 get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, 226 get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') },
214 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, 227 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') },
@@ -232,6 +245,23 @@ const CONFIG = {
232 get MANUAL_APPROVAL () { return config.get<boolean>('followers.instance.manual_approval') } 245 get MANUAL_APPROVAL () { return config.get<boolean>('followers.instance.manual_approval') }
233 } 246 }
234 }, 247 },
248 FOLLOWINGS: {
249 INSTANCE: {
250 AUTO_FOLLOW_BACK: {
251 get ENABLED () {
252 return config.get<boolean>('followings.instance.auto_follow_back.enabled')
253 }
254 },
255 AUTO_FOLLOW_INDEX: {
256 get ENABLED () {
257 return config.get<boolean>('followings.instance.auto_follow_index.enabled')
258 },
259 get INDEX_URL () {
260 return config.get<string>('followings.instance.auto_follow_index.index_url')
261 }
262 }
263 }
264 },
235 THEME: { 265 THEME: {
236 get DEFAULT () { return config.get<string>('theme.default') } 266 get DEFAULT () { return config.get<string>('theme.default') }
237 } 267 }