[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
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -91,7 +91,8 @@
{% block 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>
{% endblock note_sidebar %}