mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
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),
|
||||
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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user