From aa4f23bfadf0cc533bbf90eb0316e5341f42dd48 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 28 Mar 2025 12:59:06 -0400 Subject: [PATCH] fix: do not await the batch call to sendMessage --- src/activitypub/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))), {