Add feedback blocklist to prevent toxic messages and spam of profanity-#5737
Open
manuJL wants to merge 6 commits into
Open
Add feedback blocklist to prevent toxic messages and spam of profanity-#5737manuJL wants to merge 6 commits into
manuJL wants to merge 6 commits into
Conversation
manuJL
commented
Jul 7, 2026
manuJL
left a comment
Contributor
Author
There was a problem hiding this comment.
added small change
Contributor
|
I'd suggest using https://www.profanity.dev/ or importing everything in https://github.com/dsojevic/profanity-list, rather than manually choosing which words to block |
… blocked wordws , Regex layer improved to catch better and better normalisation
Contributor
|
I have a few problems.
I'll see if I can test it later on to find out if it actually works. |
Contributor
|
yeah this would just be something to reduce trashy spam. better than nothing. |
added 3 commits
July 8, 2026 09:16
1. Restored Copyright: The header in feedback.post.ts has been reverted to the original Copyright (c) 2025 taskylizard. 2. Reverted Blocklist: Completely reverted api/feedback-blocklist.txt since we are no longer using it. 3. NPM Package Integration: Uninstalled the generated list and installed the official @dsojevic/profanity-list package. The backend now loads its en.json dataset directly. 4. Mild vs. Heavy Profanity: - Severity 1 & 2 (e.g. "fuck"): Words are replaced with **** and the message is sent to Discord. - Severity 3 & 4 (e.g. slurs): The message is blocked. The API returns a 400 error, triggering the frontend error. 5. No More Broad Patterns: Removed broad normalization and leet-speak regexes. The system now uses exact word boundaries (\b). 6. Frontend Cleanup: Removed the client-side hasProfanity gate and the fake network delay.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feedback-blocklist.txt its simple text file that has list of vulgar and toxic and profanity words that is used by feedback.post.ts to detect those words and blocked them and feedback with those words don't get sent instead it get discarded and regex patterns and keeps the original rate limiting and Discord webhook logic