mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: #12662, add original activity actor to Announced activity's cc
This commit is contained in:
@@ -44,13 +44,16 @@ async function announce(id, activity) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { actor } = activity;
|
||||||
|
followers.unshift(actor);
|
||||||
|
|
||||||
winston.info(`[activitypub/inbox.announce(1b12)] Announcing ${activity.type} to followers of cid ${cid}`);
|
winston.info(`[activitypub/inbox.announce(1b12)] Announcing ${activity.type} to followers of cid ${cid}`);
|
||||||
await Promise.all([activity, activity.object].map(async (object) => {
|
await Promise.all([activity, activity.object].map(async (object) => {
|
||||||
await activitypub.send('cid', cid, followers, {
|
await activitypub.send('cid', cid, followers, {
|
||||||
id: `${id}#activity/announce/${Date.now()}`,
|
id: `${id}#activity/announce/${Date.now()}`,
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
to: [`${nconf.get('url')}/category/${cid}/followers`],
|
to: [`${nconf.get('url')}/category/${cid}/followers`],
|
||||||
cc: [activitypub._constants.publicAddress],
|
cc: [actor, activitypub._constants.publicAddress],
|
||||||
object,
|
object,
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user