summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:24:35 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:24:35 +0100
commit50e257bea1aa58a424001b263ed442bf919e9710 (patch)
treefca1c2da05d2991beb704fb10d4cbd9cf95ea02d /synapse/config/_base.py
parentMerge commit '72822e60b' into anoa/dinsic_release_1_31_0 (diff)
parentGive `public_baseurl` a default value (#9159) (diff)
downloadsynapse-50e257bea1aa58a424001b263ed442bf919e9710.tar.xz
Merge commit 'fa50e4bf4' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py

index f2ddb039a3..93344583e7 100644 --- a/synapse/config/_base.py +++ b/synapse/config/_base.py
@@ -253,11 +253,12 @@ class Config: env = jinja2.Environment(loader=loader, autoescape=autoescape) # Update the environment with our custom filters - 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)} - ) + env.filters.update( + { + "format_ts": _format_ts_filter, + "mxc_to_http": _create_mxc_to_http_filter(self.public_baseurl), + } + ) for filename in filenames: # Load the template