@rmdes/indiekit-endpoint-activitypub 3.8.6 → 3.8.7

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.
@@ -28,10 +28,9 @@ async function processNextItem(collections, ctx, handle) {
28
28
 
29
29
  try {
30
30
  await routeToHandler(item, collections, ctx, handle);
31
- await ap_inbox_queue.updateOne(
32
- { _id: item._id },
33
- { $set: { status: "completed", processedAt: new Date().toISOString() } },
34
- );
31
+ // Delete completed items immediately — prevents unbounded collection growth
32
+ // that caused the inbox processor to hang on restart (95K+ documents).
33
+ await ap_inbox_queue.deleteOne({ _id: item._id });
35
34
  } catch (error) {
36
35
  const attempts = (item.attempts || 0) + 1;
37
36
  await ap_inbox_queue.updateOne(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
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",