From 8424c4026afd7304880a4ce8138a04ffb3d8c938 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 30 Aug 2019 16:50:12 +0200 Subject: Add auto follow back support for instances --- server/initializers/config.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'server/initializers') diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 510f7d64d..599f3f5ac 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -232,6 +232,23 @@ const CONFIG = { get MANUAL_APPROVAL () { return config.get('followers.instance.manual_approval') } } }, + FOLLOWINGS: { + INSTANCE: { + AUTO_FOLLOW_BACK: { + get ENABLED () { + return config.get('followings.instance.auto_follow_back.enabled') + } + }, + AUTO_FOLLOW_INDEX: { + get ENABLED () { + return config.get('followings.instance.auto_follow_index.enabled') + }, + get INDEX_URL () { + return config.get('followings.instance.auto_follow_index.index_url') + } + } + } + }, THEME: { get DEFAULT () { return config.get('theme.default') } } -- cgit v1.2.3