diff options
-rw-r--r-- | synapse/util/threepids.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py index 3e2ecd488e..4cc7d27ce5 100644 --- a/synapse/util/threepids.py +++ b/synapse/util/threepids.py @@ -49,8 +49,8 @@ def check_3pid_allowed(hs, medium, address): # Check if this user is intended to register for this homeserver if ( - data.get('hs',None) != hs.config.server_name - and data.get('shadow_hs',None) != hs.config.server_name + data.get('hs') != hs.config.server_name + and data.get('shadow_hs') != hs.config.server_name ): defer.returnValue(False) |