Node.js based forum software built for the modern web
fix: thrown exception from failed note assertion
Julian Lam830aab66bbe5
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex eddc8026bd..5af54cfa4c 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -308,11 +308,12 @@ inbox.announce = async (req) => {return;}- ({ tid } = await activitypub.notes.assert(0, pid, { cid, skipChecks: true })); // checks skipped; done above.- if (!tid) {+ const assertion = await activitypub.notes.assert(0, pid, { cid, skipChecks: true }); // checks skipped; done above.+ if (!assertion) {return;}+ ({ tid } = assertion);await topics.updateLastPostTime(tid, timestamp);await activitypub.notes.updateLocalRecipients(pid, { to, cc });await activitypub.notes.syncUserInboxes(tid);