check all audience fields when determining if a post is direct to group (Masto apprently uses only cc)
This commit is contained in:
parent
6216ad02a8
commit
fdbc15c630
1 changed files with 1 additions and 1 deletions
2
index.js
2
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue