Skip to content

Node.js based forum software built for the modern web

fix: #12662, add original activity actor to Announced activity's cc

Julian Lamd6f44d8ec353
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 99446020a3..310f09cd48 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -44,13 +44,16 @@ async function announce(id, activity) {
return;
}
+ const { actor } = activity;
+ followers.unshift(actor);
+
winston.info(`[activitypub/inbox.announce(1b12)] Announcing ${activity.type} to followers of cid ${cid}`);
await Promise.all([activity, activity.object].map(async (object) => {
await activitypub.send('cid', cid, followers, {
id: `${id}#activity/announce/${Date.now()}`,
type: 'Announce',
to: [`${nconf.get('url')}/category/${cid}/followers`],
- cc: [activitypub._constants.publicAddress],
+ cc: [actor, activitypub._constants.publicAddress],
object,
});
}));