From eab440bceb09ff4a68e0463757c453209e92f2f4 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sun, 22 Feb 2026 20:28:40 +0100 Subject: [PATCH] fix: use Fedify 2.0 replyTarget for reply threading Fedify 2.0 renamed the Note/Article constructor parameter from inReplyTo to replyTarget. The old name was silently ignored, causing replies to appear as standalone posts on the fediverse. --- lib/controllers/compose.js | 2 +- lib/jf2-to-as2.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/controllers/compose.js b/lib/controllers/compose.js index fbd3b93..1c1ec28 100644 --- a/lib/controllers/compose.js +++ b/lib/controllers/compose.js @@ -208,7 +208,7 @@ export function submitComposeController(mountPath, plugin) { id: new URL(noteId), attribution: actorUri, content: content.trim(), - inReplyTo: inReplyTo ? new URL(inReplyTo) : undefined, + replyTarget: inReplyTo ? new URL(inReplyTo) : undefined, published: Temporal.Now.instant(), to: publicAddress, cc: followersUri, diff --git a/lib/jf2-to-as2.js b/lib/jf2-to-as2.js index b30117b..7597436 100644 --- a/lib/jf2-to-as2.js +++ b/lib/jf2-to-as2.js @@ -215,7 +215,7 @@ export function jf2ToAS2Activity(properties, actorUrl, publicationUrl, options = } if (properties["in-reply-to"]) { - noteOptions.inReplyTo = new URL(properties["in-reply-to"]); + noteOptions.replyTarget = new URL(properties["in-reply-to"]); } // Attachments diff --git a/package.json b/package.json index 826ba1a..131fa41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "2.0.4", + "version": "2.0.5", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit",