@rmdes/indiekit-endpoint-activitypub 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/inbox-listeners.js +8 -4
- package/package.json +1 -1
package/lib/inbox-listeners.js
CHANGED
|
@@ -207,10 +207,14 @@ export function registerInboxListeners(inboxChain, options) {
|
|
|
207
207
|
actorObj?.preferredUsername?.toString() ||
|
|
208
208
|
actorUrl;
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
let inReplyTo = null;
|
|
211
|
+
if (object instanceof Note && typeof object.getInReplyTo === "function") {
|
|
212
|
+
try {
|
|
213
|
+
inReplyTo = (await object.getInReplyTo())?.id?.href ?? null;
|
|
214
|
+
} catch {
|
|
215
|
+
/* remote fetch may fail */
|
|
216
|
+
}
|
|
217
|
+
}
|
|
214
218
|
|
|
215
219
|
// Log replies to our posts (existing behavior for conversations)
|
|
216
220
|
if (inReplyTo) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|