@rmdes/indiekit-endpoint-activitypub 1.0.11 → 1.0.13
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/batch-refollow.js +4 -2
- package/lib/inbox-listeners.js +8 -4
- package/package.json +1 -1
package/lib/batch-refollow.js
CHANGED
|
@@ -122,8 +122,10 @@ export async function getBatchRefollowStatus(collections) {
|
|
|
122
122
|
collections.ap_following.countDocuments({ source: "federation" }),
|
|
123
123
|
]);
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
// Include federated in totals — accounts transition from refollow:sent
|
|
126
|
+
// to federation when Accept arrives, so they must stay in the math
|
|
127
|
+
const total = remaining + sent + failed + federated;
|
|
128
|
+
const completed = sent + failed + federated;
|
|
127
129
|
const progressPercent =
|
|
128
130
|
total > 0 ? Math.round((completed / total) * 100) : 100;
|
|
129
131
|
|
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.13",
|
|
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",
|