[bug] MRF followers_only policy does not protect against spam DMs #541
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#541
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
OTP
Extra details
No response
Version
3.8.0-234-gb86b3a9e-develop hash
b86b3a9e
PostgreSQL version
No response
What were you trying to do?
With increasing spam messages from bot accounts on mastodon.social, both snowdin.town and 0w0.is have set up SimplePolicy followers_only rule for all posts from that domain.
What did you expect to happen?
The intention was to block DMs from unfollowed users so that accounts sending spam links would not be visible.
What actually happened?
However the policy does not do that, and DMs from users there still come through as normal.
This has caused confusion from both admins and users, and we weren't sure if we're misunderstanding the policy or if it's a bug.
I read the relevant section of simple_policy_test.exs and it seems to be removing address from the
to
field, so I wonder if maybe another piece of code is adding it back in.See https://snowdin.town/notice/AVeeCiVkpABqOvz1WK
Logs
No response
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
you have misinterpreted the function of followers_only
essentially what this mrf does is downgrade public posts to followers only - direct messages are below the visibility of followers only, so would not be affected by this
see https://docs.akkoma.dev/stable/configuration/cheatsheet/#mrf_simple
Thanks so much for the quick reply. So it sounds like what we really want is
mrf_rejectnonpublic
policy withallow_followersonly
on andallow_direct
off?yes, though since
rejectnonpublic
is boolean, you'll probably want to use it in combination with subchainshould work
replace example.com with whatever you need
Is there a way to block DMs from non-followed accounts generally, without specifying a host to which it applies?
no
I think this is resolved by
d310f99d6a