mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: thrown exception from failed note assertion
This commit is contained in:
@@ -315,11 +315,12 @@ inbox.announce = async (req) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
({ tid } = await activitypub.notes.assert(0, pid, { cid, skipChecks: true })); // checks skipped; done above.
|
const assertion = await activitypub.notes.assert(0, pid, { cid, skipChecks: true }); // checks skipped; done above.
|
||||||
if (!tid) {
|
if (!assertion) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
({ tid } = assertion);
|
||||||
await topics.updateLastPostTime(tid, timestamp);
|
await topics.updateLastPostTime(tid, timestamp);
|
||||||
await activitypub.notes.updateLocalRecipients(pid, { to, cc });
|
await activitypub.notes.updateLocalRecipients(pid, { to, cc });
|
||||||
await activitypub.notes.syncUserInboxes(tid);
|
await activitypub.notes.syncUserInboxes(tid);
|
||||||
|
|||||||
Reference in New Issue
Block a user