0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-11 07:08:56 +02:00

Fix Jinja templating error when generating thumbnail URLs. (#12510)

scale is meant to be a constant string, not refer to a variable.
This commit is contained in:
Patrick Cloke 2022-04-20 12:03:03 -04:00 committed by GitHub
parent ecef741add
commit 103f51d867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/12510.bugfix Normal file
View file

@ -0,0 +1 @@
Fix a long-standing bug where the image thumbanils embedded into email notifications were broken.

View file

@ -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 %}