From 79c6e72ce639e177779d3e4040a2cd6c34c27ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 27 Aug 2025 11:29:43 -0400 Subject: [PATCH] test: more logs for failing test --- src/activitypub/inbox.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index cd13982b8c..b4c51f7588 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -34,25 +34,27 @@ function reject(type, object, target, senderType = 'uid', id = 0) { inbox.create = async (req) => { const { object, actor } = req.body; - + const start = Date.now(); // Alternative logic for non-public objects const isPublic = [...(object.to || []), ...(object.cc || [])].includes(activitypub._constants.publicAddress); if (!isPublic) { return await activitypub.notes.assertPrivate(object); } - + console.log(' 4a', Date.now() - start); // Category sync, remove when cross-posting available const { cids } = await activitypub.actors.getLocalFollowers(actor); let cid = null; if (cids.size > 0) { cid = Array.from(cids)[0]; } - + console.log(' 4b', Date.now() - start); const asserted = await activitypub.notes.assert(0, object, { cid }); + console.log(' 4c', Date.now() - start); if (asserted) { await activitypub.feps.announce(object.id, req.body); // api.activitypub.add(req, { pid: object.id }); } + console.log(' 4d', Date.now() - start); }; inbox.add = async (req) => {