summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-02 12:32:26 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-02 12:32:26 +0100
commit77daff166d033736c78d18c3173726ef07940718 (patch)
tree23aa6ae9286dc4e1afb26a6f1937859990468636 /synapse/config/_base.py
parentRevert "fix remote thumbnails?" (diff)
parentFix bug in remote thumbnail search (#8438) (diff)
downloadsynapse-77daff166d033736c78d18c3173726ef07940718.tar.xz
Merge remote-tracking branch 'origin/release-v1.21.0' into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py

index 05a66841c3..85f65da4d9 100644 --- a/synapse/config/_base.py +++ b/synapse/config/_base.py
@@ -242,12 +242,11 @@ class Config: env = jinja2.Environment(loader=loader, autoescape=autoescape) # Update the environment with our custom filters - env.filters.update( - { - "format_ts": _format_ts_filter, - "mxc_to_http": _create_mxc_to_http_filter(self.public_baseurl), - } - ) + env.filters.update({"format_ts": _format_ts_filter}) + if self.public_baseurl: + env.filters.update( + {"mxc_to_http": _create_mxc_to_http_filter(self.public_baseurl)} + ) for filename in filenames: # Load the template