diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-10-02 06:15:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 11:15:53 +0100 |
commit | 34ff8da83b54024289f515c6d73e6b486574d699 (patch) | |
tree | bb7570650c3b3a54c5a6fe2263ec9a4e26dd0fb8 /synapse/config/consent_config.py | |
parent | Fix malformed log line in new federation "catch up" logic (#8442) (diff) | |
download | synapse-34ff8da83b54024289f515c6d73e6b486574d699.tar.xz |
Convert additional templates to Jinja (#8444)
This converts a few more of our inline HTML templates to Jinja. This is somewhat part of #7280 and should make it a bit easier to customize these in the future.
Diffstat (limited to 'synapse/config/consent_config.py')
-rw-r--r-- | synapse/config/consent_config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/config/consent_config.py b/synapse/config/consent_config.py index fbddebeeab..6efa59b110 100644 --- a/synapse/config/consent_config.py +++ b/synapse/config/consent_config.py @@ -89,6 +89,8 @@ class ConsentConfig(Config): def read_config(self, config, **kwargs): consent_config = config.get("user_consent") + self.terms_template = self.read_templates(["terms.html"], autoescape=True)[0] + if consent_config is None: return self.user_consent_version = str(consent_config["version"]) |