Changeset 7d932ce in Klonkt for src/config/database.js


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/config/database.js

    rcc24fa1 r7d932ce  
    328328      content TEXT,                         -- sanitized HTML (reply)
    329329      published TEXT,
     330      parent_uri TEXT,                      -- the note this reply replies to (for nesting)
    330331      created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
    331332      UNIQUE(kind, post_id, actor_uri, object_uri)
     
    345346    CREATE INDEX IF NOT EXISTS idx_ap_outbox_post ON ap_outbox(post_id);
    346347  `);
     348  ensureColumn('ap_interactions', 'parent_uri', 'TEXT'); // nesting (existing DBs)
    347349}
    348350
Note: See TracChangeset for help on using the changeset viewer.