mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-19 12:04:51 -04:00
Ensure that a URL exists in the content during push. (#8965)
This fixes an KeyError exception, after this PR the content is just considered unknown.
This commit is contained in:
parent
a7a913918c
commit
4136255d3c
3 changed files with 7 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
{{ message.body_text_html }}
|
||||
{%- elif message.msgtype == "m.notice" %}
|
||||
{{ message.body_text_html }}
|
||||
{%- elif message.msgtype == "m.image" %}
|
||||
{%- elif message.msgtype == "m.image" and message.image_url %}
|
||||
<img src="{{ message.image_url|mxc_to_http(640, 480, scale) }}" />
|
||||
{%- elif message.msgtype == "m.file" %}
|
||||
<span class="filename">{{ message.body_text_plain }}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue