mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: accidental sending of Set to ActivityPub.send
This commit is contained in:
@@ -397,7 +397,7 @@ activitypubApi.add = enabledCheck((async (_, { pid }) => {
|
|||||||
let targets;
|
let targets;
|
||||||
({ to, cc, targets } = await activitypub.buildRecipients({ to, cc }, { pid: localId || pid, cid }));
|
({ to, cc, targets } = await activitypub.buildRecipients({ to, cc }, { pid: localId || pid, cid }));
|
||||||
|
|
||||||
await activitypub.send('cid', cid, targets, {
|
await activitypub.send('cid', cid, Array.from(targets), {
|
||||||
id: `${nconf.get('url')}/post/${encodeURIComponent(localId || pid)}#activity/add/${Date.now()}`,
|
id: `${nconf.get('url')}/post/${encodeURIComponent(localId || pid)}#activity/add/${Date.now()}`,
|
||||||
type: 'Add',
|
type: 'Add',
|
||||||
to,
|
to,
|
||||||
|
|||||||
Reference in New Issue
Block a user