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.
This commit is contained in:
Ricardo
2026-02-22 20:28:40 +01:00
parent cffe094222
commit eab440bceb
3 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -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",