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:
Julian Lam
2025-03-26 14:44:22 -04:00
parent 4d1d7c3dca
commit 1f04678210

View File

@@ -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)));