summary refs log tree commit diff
path: root/synapse/push/mailer.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-10-22 22:18:02 +1100
committerAmber Brown <hawkowl@atleastfornow.net>2018-10-22 22:18:02 +1100
commitead471e72df700036a3085c2403cf2307f08d2d8 (patch)
tree833f31c14824e339fe038bfd5713dfb639288be5 /synapse/push/mailer.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentuh, Matrix is called Matrix these days... (diff)
downloadsynapse-ead471e72df700036a3085c2403cf2307f08d2d8.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/push/mailer.py')
-rw-r--r--synapse/push/mailer.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py

index b9dcfee740..16fb5e8471 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py
@@ -526,12 +526,8 @@ def load_jinja2_templates(config): Returns: (notif_template_html, notif_template_text) """ - logger.info("loading jinja2") - - if config.email_template_dir: - loader = jinja2.FileSystemLoader(config.email_template_dir) - else: - loader = jinja2.PackageLoader('synapse', 'res/templates') + logger.info("loading email templates from '%s'", config.email_template_dir) + loader = jinja2.FileSystemLoader(config.email_template_dir) env = jinja2.Environment(loader=loader) env.filters["format_ts"] = format_ts_filter env.filters["mxc_to_http"] = _create_mxc_to_http_filter(config)