feat: render DM conversations as threaded view on mention tab

This commit is contained in:
svemagie
2026-03-13 07:27:12 +01:00
parent 51a8abb0a2
commit bf6262e2c6
+13
View File
@@ -48,6 +48,18 @@
</form> </form>
</div> </div>
{% if tab == "mention" %}
{# DM thread view — grouped by conversation #}
{% if conversations and conversations.length > 0 %}
<div class="ap-dm-conversations">
{% for conv in conversations %}
{% include "partials/ap-dm-thread.njk" %}
{% endfor %}
</div>
{% else %}
{{ prose({ text: "No direct messages yet." }) }}
{% endif %}
{% else %}
{% if items.length > 0 %} {% if items.length > 0 %}
<div class="ap-timeline"> <div class="ap-timeline">
{% for item in items %} {% for item in items %}
@@ -66,4 +78,5 @@
{% else %} {% else %}
{{ prose({ text: __("activitypub.notifications.empty") }) }} {{ prose({ text: __("activitypub.notifications.empty") }) }}
{% endif %} {% endif %}
{% endif %}
{% endblock %} {% endblock %}