mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: #13255, assert all recipients of the main post when asserting a note, so that remote categories can be discovered
This commit is contained in:
@@ -100,6 +100,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
||||
} else {
|
||||
// Check recipients/audience for category (local or remote)
|
||||
const set = activitypub.helpers.makeSet(_activitypub, ['to', 'cc', 'audience']);
|
||||
await activitypub.actors.assert(Array.from(set));
|
||||
|
||||
// Local
|
||||
const resolved = await Promise.all(Array.from(set).map(async id => await activitypub.helpers.resolveLocalId(id)));
|
||||
|
||||
Reference in New Issue
Block a user