summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-15 11:55:51 +0000
committerErik Johnston <erik@matrix.org>2019-03-15 14:39:25 +0000
commit5827e976fe1f7ac5aa9123d2167fe80c2d9de1ca (patch)
tree1e24b6d82ecd8ba7f9d0bd80aa49e1ec508f1d5f /synapse/util
parentMerge branch 'master' of github.com:matrix-org/synapse into erikj/dinsic-merg... (diff)
downloadsynapse-5827e976fe1f7ac5aa9123d2167fe80c2d9de1ca.tar.xz
Fixups
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/threepids.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py
index 84c56109ca..e48c6201d0 100644
--- a/synapse/util/threepids.py
+++ b/synapse/util/threepids.py
@@ -48,7 +48,10 @@ def check_3pid_allowed(hs, medium, address):
             defer.returnValue(False)
 
         # Check if this user is intended to register for this homeserver
-        if data['hs'] != hs.config.server_name and data['shadow_hs'] != hs.config.server_name:
+        if (
+            data['hs'] != hs.config.server_name
+            and data['shadow_hs'] != hs.config.server_name
+        ):
             defer.returnValue(False)
 
         if data.get('requires_invite', False) and not data.get('invited', False):