Changeset 6bd25d1 in Klonkt for src/server.js


Ignore:
Timestamp:
06/24/2026 10:27:56 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5bf63b7
Parents:
69815b2
Message:

feat(activitypub): phase 1 — discoverable/fetchable actor (WebFinger, Actor, Outbox, Notes)

First step of real ActivityPub federation: per-site RSA keys, WebFinger,
a content-negotiated Actor document (AP-JSON for servers, redirect to the HTML
profile for browsers), Outbox (Create/Note) and Note objects under /ap/*.
Inbox is a 202 stub for now; Follow/Accept + HTTP-signature verify + delivery
to followers land in the next step (tested live against Mastodon).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r69815b2 r6bd25d1  
    6464import changelogRoutes from './routes/changelog.js';
    6565import ogRoutes from './routes/og.js';
     66import apRoutes from './routes/activitypub.js';
    6667
    6768// SESSION_SECRET: use the env var if set. Otherwise auto-generate a strong one
     
    223224app.use(federationRoutes);
    224225
     226// ActivityPub: WebFinger + /ap/* (site-agnostic, resolves the site by slug).
     227app.use(apRoutes);
     228
    225229// Themed OG cards (/og/:slug.png) — resolve the site by slug themselves, so they
    226230// run before resolveSite and need no site context.
Note: See TracChangeset for help on using the changeset viewer.