Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logic of block/mute bypass for mentions from moderators #31271

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

ClearlyClaire
Copy link
Contributor

Early on, it has been decided that mentions from local moderators would be exempt from block/mute checks.

However, that is not extremely well communicated, and it is possible that moderators don't know about this and may accidentally expose their moderator status by messaging someone who has muted or blocked them.

This PR changes it so this exemption only applies if the sender's role is public (highlighted) and they have actual moderation permissions.

@ClearlyClaire ClearlyClaire added the to backport PR needed to be backported label Aug 2, 2024
@ClearlyClaire ClearlyClaire requested a review from a team August 6, 2024 07:12
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Aug 7, 2024
Merged via the queue into main with commit 719cabe Aug 7, 2024
32 checks passed
@ClearlyClaire ClearlyClaire deleted the fixes/moderation-account-disclosure branch August 7, 2024 07:02
kmycode pushed a commit to kmycode/mastodon that referenced this pull request Aug 16, 2024
nileane pushed a commit to nileane/mastodon that referenced this pull request Aug 19, 2024
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
@ClearlyClaire ClearlyClaire removed the to backport PR needed to be backported label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants