From 0e2d70e101f19fa2ab1f752071d8e79b88261a8c Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 13 Mar 2018 01:41:20 +0000 Subject: [PATCH] typos --- synapse/util/threepids.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py index cd629c2ec..d2f646db9 100644 --- a/synapse/util/threepids.py +++ b/synapse/util/threepids.py @@ -35,14 +35,14 @@ def check_3pid_allowed(hs, medium, address): """ if hs.config.check_is_for_allowed_local_3pids: - data = yield hs.http_client.get_json( + data = yield hs.get_simple_http_client().get_json( "https://%s%s" % ( hs.config.check_is_for_allowed_local_3pids, "/_matrix/identity/api/v1/discover_urls" ), {'medium': medium, 'address': address } ) - defer.returnValue(data.hs_url+"/" == self.hs.config.public_baseurl) + defer.returnValue(data['hs_url'] + "/" == hs.config.public_baseurl) return if hs.config.allowed_local_3pids: