From 8129b87382767a97d3029e7b9d93ed29faf7ed4d Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Fri, 13 Mar 2026 07:36:18 +0100 Subject: [PATCH] feat: add Direct Messages tab to reader view --- views/activitypub-reader.njk | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/views/activitypub-reader.njk b/views/activitypub-reader.njk index 365495b..c8685e3 100644 --- a/views/activitypub-reader.njk +++ b/views/activitypub-reader.njk @@ -82,6 +82,9 @@ {{ __("activitypub.reader.tabs.all") }} + + 🔒 Direct + {% if unread %} All posts @@ -106,8 +109,20 @@ {% endif %} + {# Direct messages — conversation threads #} + {% if tab == "direct" %} + {% if conversations and conversations.length > 0 %} +
+ {% for conv in conversations %} + {% include "partials/ap-dm-thread.njk" %} + {% endfor %} +
+ {% else %} + {{ prose({ text: "No direct messages yet." }) }} + {% endif %} + {# Timeline items with read tracking #} - {% if items.length > 0 %} + {% elif items.length > 0 %}