mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
Replace hand-rolled federation code with Fedify's battle-tested implementation. This gives us proper HTTP Signatures, WebFinger, NodeInfo, typed inbox listeners, and collection dispatchers out of the box. New modules: - lib/federation-setup.js — Fedify Federation configuration - lib/federation-bridge.js — Express↔Fedify middleware bridge - lib/inbox-listeners.js — typed inbox handlers (Follow, Undo, etc.) - lib/kv-store.js — MongoDB-backed KvStore adapter - lib/controllers/profile.js — admin profile management - views/activitypub-profile.njk — profile editing form Removed hand-rolled modules: - lib/actor.js, lib/federation.js, lib/inbox.js - lib/keys.js, lib/webfinger.js Key changes: - Actor, inbox, outbox, followers, following all delegate to Fedify - Syndication uses ctx.sendActivity() instead of manual delivery - Profile managed via admin UI, stored in ap_profile collection - Legacy PKCS#8 keys imported via Web Crypto API - Custom bridge preserves Express mount path (req.originalUrl)