summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 19:11:54 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 19:11:54 +0100
commit3e6a798ee777013d198830ad71a527f9c6e6cdf5 (patch)
tree1d777ee02594645add0c68544418813ba3e4d2cb /synapse/handlers
parentMerge commit 'fb0e14ee9' into anoa/dinsic_release_1_31_0 (diff)
parentBackout changes for automatically calculating the public baseurl. (#9313) (diff)
downloadsynapse-3e6a798ee777013d198830ad71a527f9c6e6cdf5.tar.xz
Merge commit 'e40d88cff' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/identity.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py

index 8dbf9bef3f..4eb0036edd 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py
@@ -555,6 +555,10 @@ class IdentityHandler(BaseHandler): except RequestTimedOutError: raise SynapseError(500, "Timed out contacting identity server") + # It is already checked that public_baseurl is configured since this code + # should only be used if account_threepid_delegate_msisdn is true. + assert self.hs.config.public_baseurl + # we need to tell the client to send the token back to us, since it doesn't # otherwise know where to send it, so add submit_url response parameter # (see also MSC2078)