feat: cache user pictures

This commit is contained in:
imperosol
2025-09-17 07:47:22 +02:00
parent 289ffe1109
commit 2a30f30a31
3 changed files with 28 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
{% endblock %}
{% block content %}
<main x-data="user_pictures({ userId: {{ object.id }} })">
<main x-data="user_pictures({ userId: {{ object.id }}, nbPictures: {{ object.nb_pictures }} })">
{% if user.id == object.id %}
{{ download_button(_("Download all my pictures")) }}
{% endif %}