Give public_baseurl a default value (#9159)

This commit is contained in:
Richard van der Hoff 2021-01-20 12:30:41 +00:00 committed by GitHub
parent fa842a9866
commit fa50e4bf4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 48 additions and 83 deletions

View file

@ -34,10 +34,6 @@ class WellKnownBuilder:
self._config = hs.config
def get_well_known(self):
# if we don't have a public_baseurl, we can't help much here.
if self._config.public_baseurl is None:
return None
result = {"m.homeserver": {"base_url": self._config.public_baseurl}}
if self._config.default_identity_server: