diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-04-20 12:03:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 12:03:03 -0400 |
commit | 103f51d867dc3966e44d79e949e78380efef5e2d (patch) | |
tree | cf306f99a22579f148b9c5a7a9e00d24dd43c0bc /synapse | |
parent | Recommend poetry in docs (#12475) (diff) | |
download | synapse-103f51d867dc3966e44d79e949e78380efef5e2d.tar.xz |
Fix Jinja templating error when generating thumbnail URLs. (#12510)
scale is meant to be a constant string, not refer to a variable.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/res/templates/notif.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/res/templates/notif.html b/synapse/res/templates/notif.html index 0aaef97df8..7d86681fed 100644 --- a/synapse/res/templates/notif.html +++ b/synapse/res/templates/notif.html @@ -30,7 +30,7 @@ {%- elif message.msgtype == "m.notice" %} {{ message.body_text_html }} {%- elif message.msgtype == "m.image" and message.image_url %} - <img src="{{ message.image_url|mxc_to_http(640, 480, scale) }}" /> + <img src="{{ message.image_url|mxc_to_http(640, 480, 'scale') }}" /> {%- elif message.msgtype == "m.file" %} <span class="filename">{{ message.body_text_plain }}</span> {%- else %} |