Skip to content

Node.js based forum software built for the modern web

fix: accidental sending of Set to ActivityPub.send

Julian Lam3030a720e985
diff --git a/src/api/activitypub.js b/src/api/activitypub.js
index a7ba3c1cee..6adfa66363 100644
--- a/src/api/activitypub.js
+++ b/src/api/activitypub.js
@@ -397,7 +397,7 @@ activitypubApi.add = enabledCheck((async (_, { pid }) => {
let targets;
({ 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()}`,
type: 'Add',
to,