[Embed] Use new attachment route format

This commit is contained in:
Hugo Sales 2021-09-23 14:51:31 +01:00
parent 6a2c3eb711
commit bb81f1f717
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -3,8 +3,7 @@
{% if attributes['has_attachment'] != false %} {% if attributes['has_attachment'] != false %}
{% set thumbnail_parameters = { {% set thumbnail_parameters = {
'id': embed.getAttachmentId(), 'id': embed.getAttachmentId(),
'w': attributes['width'], 'size': 'small'
'h': attributes['height']
} %} } %}
<img alt="{{embed.getTitle() | escape}}" class="{{attributes['class']}}" <img alt="{{embed.getTitle() | escape}}" class="{{attributes['class']}}"
width="{{attributes['width']}}" height="{{attributes['height']}}" width="{{attributes['width']}}" height="{{attributes['height']}}"