Node.js based forum software built for the modern web
fix: #13255, assert all recipients of the main post when asserting a note, so that remote categories can be discovered
Julian Lam1f04678210e3
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex be0b61f847..747eeb54d2 100644--- a/src/activitypub/notes.js+++ b/src/activitypub/notes.js@@ -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));// Localconst resolved = await Promise.all(Array.from(set).map(async id => await activitypub.helpers.resolveLocalId(id)));