mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: thrown exception from failed note assertion
This commit is contained in:
@@ -315,11 +315,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);
|
||||
|
||||
Reference in New Issue
Block a user