From 3f457333b507e534e78e47aa488829ed9e790c41 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 4 Nov 2022 08:43:59 -0500 Subject: [PATCH] profanity: per fish request disable profanity filter everywhere but rdrama feel free to revert this or whatever if discussed --- files/helpers/regex.py | 5 +++-- files/templates/settings_filters.html | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 2bc556660..08ac83e55 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -151,8 +151,9 @@ def censor_slurs(body:Optional[str], logged_user): if not logged_user or logged_user == 'chat' or logged_user.slurreplacer: body = replace_re(body, slur_regex, slur_regex_upper, sub_matcher_slurs, sub_matcher_slurs_upper) - if not logged_user or logged_user == 'chat' or logged_user.profanityreplacer: - body = replace_re(body, profanity_regex, profanity_regex_upper, sub_matcher_profanities, sub_matcher_profanities_upper) + if SITE_NAME == 'rDrama': + if not logged_user or logged_user == 'chat' or logged_user.profanityreplacer: + body = replace_re(body, profanity_regex, profanity_regex_upper, sub_matcher_profanities, sub_matcher_profanities_upper) return body diff --git a/files/templates/settings_filters.html b/files/templates/settings_filters.html index 28be8c90b..c7368e2e5 100644 --- a/files/templates/settings_filters.html +++ b/files/templates/settings_filters.html @@ -311,7 +311,7 @@ Enable if you would like to automatically replace slurs. - + {% if SITE_NAME == 'rDrama' %}
@@ -324,7 +324,7 @@ Enable if you would like to automatically replace profanities.
- + {% endif %}