[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:
parent
ea42ba9f26
commit
65676d3980
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user