[CARDS][Note] Fix attachment page from retrieving image dimensions

Attachments may use only a specific block, not the full note macro itself. Since this is the case, the actor needs to be retrieved for the minimal macro note.
This commit is contained in:
Eliseu Amaro 2021-12-26 23:45:39 +00:00 committed by Diogo Peralta Cordeiro
parent ea42ba9f26
commit 65676d3980
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -91,7 +91,7 @@
{% block note_sidebar %}
<aside class="note-sidebar">
{% set actor_avatar_dimensions = actor.getAvatarDimensions() %}
{% set actor_avatar_dimensions = note.getActor().getAvatarDimensions() %}
<img class="u-logo avatar" src="{{ note.getActorAvatarUrl() }}" alt="{{ nickname }}'s avatar" width="{{actor_avatar_dimensions['width']}}" height="{{actor_avatar_dimensions['height']}}">
</aside>
{% endblock note_sidebar %}