fixed photo links

This commit is contained in:
Éloi Rivard 2021-12-16 09:23:08 +01:00
parent 58abc8728d
commit 15640c6912
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@
<a class="ui right corner label photo-delete-icon" title="{{ _("Delete the photo") }}">
<i class="times icon"></i>
</a>
<img src="{% if photo %}{{ url_for("account.photo", uid=edited_user.uid, field="jpegPhoto") }}{% endif %}" alt="User photo">
<img src="{% if photo %}{{ url_for("account.photo", uid=edited_user.uid[0], field="jpegPhoto") }}{% endif %}" alt="User photo">
</label>
<label
class="ui centered photo-placeholder"

View file

@ -23,7 +23,7 @@
<td>
<a href="{{ url_for('account.profile_edition', username=user.uid[0]) }}">
{% if user.jpegPhoto and user.jpegPhoto[0] %}
<img class="ui avatar image" src="{{ url_for("account.photo", uid=user.uid, field="jpegPhoto") }}" alt="User photo">
<img class="ui avatar image" src="{{ url_for("account.photo", uid=user.uid[0], field="jpegPhoto") }}" alt="User photo">
{% else %}
<i class="user circle big black icon"></i>
{% endif %}