This commit is contained in:
Matthew Hodgson 2018-03-13 01:41:20 +00:00
parent 82c4fd7226
commit 0e2d70e101

View File

@ -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: