From c1744258ccba693ef6771e8e147e76c8ce53fe21 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 26 Mar 2025 14:44:22 -0400 Subject: [PATCH] fix: #13255, assert all recipients of the main post when asserting a note, so that remote categories can be discovered --- src/activitypub/notes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 05deffc120..c46c5b3246 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)); // Local const resolved = await Promise.all(Array.from(set).map(async id => await activitypub.helpers.resolveLocalId(id)));