From 3030a720e985939d74a2f4a9136cde427ad28007 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 24 Oct 2024 13:30:51 -0400 Subject: [PATCH] fix: accidental sending of Set to ActivityPub.send --- src/api/activitypub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,