Browse Source

[Embed] Use new attachment route format

remotes/upstream/experimental
Hugo Sales 8 months ago
parent
commit
bb81f1f717
Signed by: someonewithpc <hugo@hsal.es> GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      plugins/Embed/templates/embed/embedView.html.twig

+ 2
- 3
plugins/Embed/templates/embed/embedView.html.twig View File

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

Loading…
Cancel
Save