mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
typos
This commit is contained in:
parent
82c4fd7226
commit
0e2d70e101
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user