From e0a606c8c254b52a472837d76a84b0a043d90976 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sun, 22 Feb 2026 19:31:45 +0100 Subject: [PATCH] fix(compose): add to/cc addressing to quick reply Notes Remote servers (Mastodon, etc.) require explicit audience addressing to display a post. Without to/cc, the Note was silently discarded. - to: as:Public (visible to everyone) - cc: followers collection --- lib/controllers/compose.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/controllers/compose.js b/lib/controllers/compose.js index c7ef9d6..3c197b9 100644 --- a/lib/controllers/compose.js +++ b/lib/controllers/compose.js @@ -198,12 +198,15 @@ export function submitComposeController(mountPath, plugin) { const noteId = `urn:uuid:${crypto.randomUUID()}`; const actorUri = ctx.getActorUri(handle); + const followersUri = ctx.getFollowersUri(handle); const note = new Note({ id: new URL(noteId), attribution: actorUri, content: content.trim(), inReplyTo: inReplyTo ? new URL(inReplyTo) : undefined, published: Temporal.Now.instant(), + to: new URL("https://www.w3.org/ns/activitystreams#Public"), + cc: followersUri, }); const create = new Create({ diff --git a/package.json b/package.json index af763f1..ca222dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "2.0.2", + "version": "2.0.3", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit",