Skip to content

Commit

Permalink
Fix Jinja templating error when generating thumbnail URLs.
Browse files Browse the repository at this point in the history
scale is meant to be a constant string, not refer to a variable.
(matrix-org/synapse#12510)
  • Loading branch information
c-cal committed Jul 29, 2022
1 parent 402ea86 commit 24b4ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fr/notif.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 24b4ae0

Please sign in to comment.