[CARDS][Note] Fix assumed avatar dimension values

This commit is contained in:
Eliseu Amaro 2021-12-26 22:04:55 +00:00 committed by Diogo Peralta Cordeiro
parent ce23660dba
commit 9d3c01312f
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

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