From b05199d897a601f063b01e96958ff76fae4df993 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 6 Jan 2026 11:34:46 -0500 Subject: [PATCH] fix: author of boosted content was not targeted in the activity --- src/activitypub/out.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/activitypub/out.js b/src/activitypub/out.js index d56f8720d5..4fb71b4870 100644 --- a/src/activitypub/out.js +++ b/src/activitypub/out.js @@ -313,7 +313,7 @@ Out.announce.topic = enabledCheck(async (tid) => { return; } - const uid = await posts.getPostField(pid, 'uid'); // author + const authorUid = await posts.getPostField(pid, 'uid'); // author const allowed = await privileges.posts.can('topics:read', pid, activitypub._constants.uid); if (!allowed) { activitypub.helpers.log(`[activitypub/api] Not federating announce of pid ${pid} to the fediverse due to privileges.`); @@ -323,8 +323,9 @@ Out.announce.topic = enabledCheck(async (tid) => { const { to, cc, targets } = await activitypub.buildRecipients({ id: pid, to: [activitypub._constants.publicAddress], - cc: [`${nconf.get('url')}/category/${cid}/followers`, uid], - }, { cid, uid: utils.isNumber(uid) ? uid : undefined }); + cc: [authorUid], + }, { cid }); + targets.add(authorUid); await activitypub.send('cid', cid, Array.from(targets), { id: `${nconf.get('url')}/post/${encodeURIComponent(pid)}#activity/announce/cid/${cid}`,