Ignore:
Timestamp:
06/24/2026 01:24:23 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
a885afc
Parents:
cc24fa1
Message:

feat(activitypub): nested threading + delete your own replies

Inbox now stores replies-to-comments nested (findThreadTarget resolves the post
via the parent comment); getInteractions builds a thread tree shown on the post
(fedi-node partial). deliverReply also cc's the post author's inbox so their
Klonkt threads it. Owners can delete their outbound replies (Delete+Tombstone)
inline + via /fediverse manage list. Schema: ap_interactions.parent_uri.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/authorize-interaction.ejs

    rcc24fa1 r7d932ce  
    11<div class="auth-interact">
    2   <% if (typeof sent !== 'undefined' && sent) { %>
     2  <% if (typeof manage !== 'undefined' && manage) { %>
     3    <h1 class="auth-interact-title"><%= t('fedi.manage_title') %></h1>
     4    <% if (!manage.length) { %><p class="auth-interact-note"><%= t('fedi.manage_empty') %></p><% } %>
     5    <ol class="comments-list">
     6      <% manage.forEach(function(m){ %>
     7        <li class="comment">
     8          <div class="comment-body">
     9            <div class="comment-content"><%- m.content %></div>
     10            <div class="comment-actions">
     11              <% if (m.to_handle) { %><span class="fedi-handle">→ <%= m.to_handle %></span><% } %>
     12              <form method="post" action="/fediverse/<%= m.id %>/delete" onsubmit="return confirm('<%= t('fedi.delete_confirm') %>')">
     13                <button type="submit" class="comment-delete-btn"><%= t('comments.delete') %></button>
     14              </form>
     15            </div>
     16          </div>
     17        </li>
     18      <% }); %>
     19    </ol>
     20  <% } else if (typeof sent !== 'undefined' && sent) { %>
    321    <h1 class="auth-interact-title"><%= t('fedi.remote_sent_title') %></h1>
    422    <p class="auth-interact-note"><%= t('fedi.remote_sent') %></p>
Note: See TracChangeset for help on using the changeset viewer.