From fdbc15c6300c00e5680922e72d0dace98aa35aa9 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Thu, 4 Nov 2021 23:27:23 -0500 Subject: [PATCH] check all audience fields when determining if a post is direct to group (Masto apprently uses only cc) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 12ba29a..6ded09b 100644 --- a/index.js +++ b/index.js @@ -98,7 +98,7 @@ app.on('apex-inbox', async ({ actor, activity, recipient, object }) => { switch (activity.type.toLowerCase()) { // automatically reshare incoming posts case 'create': { - if (!activity.to?.includes(recipient.id)) { + if (!apex.audienceFromActivity(activity).includes(recipient.id)) { // ignore forwarded messages that aren't directly adddressed to group return }