summary refs log tree commit diff
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-11-06 22:46:40 +0000
committerNeil Johnson <neil@fragile.org.uk>2018-11-06 22:46:40 +0000
commit6f19edbda5fb283793f2cd3094ef5c96de0f02d7 (patch)
treefcc95d6b462091276f0e6bf27acb12310e9ce42f
parentremove need to create support user in homeserver (diff)
downloadsynapse-6f19edbda5fb283793f2cd3094ef5c96de0f02d7.tar.xz
fix misnamed var
-rw-r--r--synapse/config/server.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 159a611e58..4d296704bc 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -87,10 +87,9 @@ class ServerConfig(Config):
             "mau_trial_days", 0,
         )
         self.support_user_id = None
-        autocreate_support_user = config.get('autocreate_support_user', None)
-        if autocreate_support_user:
-            autocreate_support_userID = UserID(local_part, self.server_name)
-            self.support_user_id = autocreate_support_userID.to_string()
+        support_user = config.get('support_user', None)
+        if support_user:
+            self.support_user_id = UserID(support_user, self.server_name).to_string()
 
         # Options to disable HS
         self.hs_disabled = config.get("hs_disabled", False)