Changeset 55bc7f9 in Klonkt for src/config/database.js


Ignore:
Timestamp:
06/24/2026 12:09:08 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
3a2c9d3
Parents:
47a0d29
Message:

feat(activitypub): reply back to the fediverse (Phase 4 outbound)

Site owner can reply to an inbound fediverse interaction from the post page. The
reply is sent as a signed Create(Note) with inReplyTo + @Mention to the remote
actor's inbox + our followers, stored in ap_outbox, shown in the thread, and
resolvable at /ap/notes/<id>.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config/database.js

    r47a0d29 r55bc7f9  
    332332    );
    333333    CREATE INDEX IF NOT EXISTS idx_ap_inter_post ON ap_interactions(post_id, kind);
     334    CREATE TABLE IF NOT EXISTS ap_outbox (
     335      id TEXT PRIMARY KEY,            -- note path segment (uuid) → /ap/notes/<id>
     336      site_slug TEXT NOT NULL,
     337      post_id TEXT NOT NULL,
     338      post_slug TEXT,
     339      in_reply_to TEXT,               -- remote status uri we reply to
     340      to_actor TEXT,                  -- remote actor uri (mentioned)
     341      to_handle TEXT,
     342      content TEXT NOT NULL,          -- sanitized HTML of our reply
     343      created_at DATETIME DEFAULT CURRENT_TIMESTAMP
     344    );
     345    CREATE INDEX IF NOT EXISTS idx_ap_outbox_post ON ap_outbox(post_id);
    334346  `);
    335347}
Note: See TracChangeset for help on using the changeset viewer.