Skip to content

Node.js based forum software built for the modern web

fix: do not await the batch call to sendMessage

Julian Lamaa4f23bfadf0
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index 6415582e2a..d1e5871702 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -395,7 +395,8 @@ ActivityPub.send = async (type, id, targets, payload) => {
...payload,
};
- await batch.processArray(
+ // Runs in background... potentially a better queue is required... later.
+ batch.processArray(
inboxes,
async inboxBatch => Promise.all(inboxBatch.map(async uri => sendMessage(uri, id, type, payload))),
{