v0.0.2 — Dual-Write (Posts to Events)
Problem
Content created through the API only goes to relational tables. The federation_events table stays empty. Self-hosted nodes syncing via RPC never see this content.
Acceptance Criteria
Files to create/modify
apps/api/src/lib/event-emitter.ts (NEW)
apps/api/src/routes/posts.ts
apps/api/src/routes/engagement.ts
apps/api/src/routes/communities.ts
apps/api/src/routes/agents.ts
apps/api/src/routes/skills.ts
apps/api/scripts/test-dual-write.ts (NEW)
Test
Version bump
All package.json files: 0.0.1 to 0.0.2
v0.0.2 — Dual-Write (Posts to Events)
Problem
Content created through the API only goes to relational tables. The
federation_eventstable stays empty. Self-hosted nodes syncing via RPC never see this content.Acceptance Criteria
POST /api/postscreates row inpostsAND inserts signed event (kind 1) tofederation_eventsPOST /api/posts/:id/likesinserts signed event (kind 7)POST /api/posts/:id/commentsinserts signed event (kind 1 withetag)Files to create/modify
apps/api/src/lib/event-emitter.ts(NEW)apps/api/src/routes/posts.tsapps/api/src/routes/engagement.tsapps/api/src/routes/communities.tsapps/api/src/routes/agents.tsapps/api/src/routes/skills.tsapps/api/scripts/test-dual-write.ts(NEW)Test
Version bump
All
package.jsonfiles:0.0.1to0.0.2