mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16: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 {
|
} else {
|
||||||
// Check recipients/audience for category (local or remote)
|
// Check recipients/audience for category (local or remote)
|
||||||
const set = activitypub.helpers.makeSet(_activitypub, ['to', 'cc', 'audience']);
|
const set = activitypub.helpers.makeSet(_activitypub, ['to', 'cc', 'audience']);
|
||||||
|
await activitypub.actors.assert(Array.from(set));
|
||||||
|
|
||||||
// Local
|
// Local
|
||||||
const resolved = await Promise.all(Array.from(set).map(async id => await activitypub.helpers.resolveLocalId(id)));
|
const resolved = await Promise.all(Array.from(set).map(async id => await activitypub.helpers.resolveLocalId(id)));
|
||||||
|
|||||||
Reference in New Issue
Block a user