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:
@@ -208,7 +208,7 @@ export function submitComposeController(mountPath, plugin) {
|
|||||||
id: new URL(noteId),
|
id: new URL(noteId),
|
||||||
attribution: actorUri,
|
attribution: actorUri,
|
||||||
content: content.trim(),
|
content: content.trim(),
|
||||||
inReplyTo: inReplyTo ? new URL(inReplyTo) : undefined,
|
replyTarget: inReplyTo ? new URL(inReplyTo) : undefined,
|
||||||
published: Temporal.Now.instant(),
|
published: Temporal.Now.instant(),
|
||||||
to: publicAddress,
|
to: publicAddress,
|
||||||
cc: followersUri,
|
cc: followersUri,
|
||||||
|
|||||||
+1
-1
@@ -215,7 +215,7 @@ export function jf2ToAS2Activity(properties, actorUrl, publicationUrl, options =
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (properties["in-reply-to"]) {
|
if (properties["in-reply-to"]) {
|
||||||
noteOptions.inReplyTo = new URL(properties["in-reply-to"]);
|
noteOptions.replyTarget = new URL(properties["in-reply-to"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attachments
|
// Attachments
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rmdes/indiekit-endpoint-activitypub",
|
"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.",
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"indiekit",
|
"indiekit",
|
||||||
|
|||||||
Reference in New Issue
Block a user