Skip to content

Pre-check bans before applying filters that result in a ban#3536

Merged
jb3 merged 3 commits into
mainfrom
jb3/filter-pre-check-bans
Jul 5, 2026
Merged

Pre-check bans before applying filters that result in a ban#3536
jb3 merged 3 commits into
mainfrom
jb3/filter-pre-check-bans

Conversation

@jb3

@jb3 jb3 commented Jul 5, 2026

Copy link
Copy Markdown
Member

Related to #3533 and #3534.

Instead of trying to cache actions we can probably achieve this simpler by just not applying the ban if a record already exists in site of this.

Alerts will still fire and will attempt to execute all actions as normal (which was the problem with previous PRs as all actions were suppressed for subsequent filters trips), this specifically suppresses the ban action from running again if a record already exists.

This will stop the message being left behind in channels that the user already had a ban infraction and will prevent the logs that are ending up in Sentry about users already having active infractions.

@jb3 jb3 requested a review from mbaruh as a code owner July 5, 2026 17:15
@jb3 jb3 merged commit 7ff00f5 into main Jul 5, 2026
5 checks passed
@jb3 jb3 deleted the jb3/filter-pre-check-bans branch July 5, 2026 17:46
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.

2 participants