profanity: per fish request disable profanity filter everywhere but rdrama

feel free to revert this or whatever if discussed
remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-04 08:43:59 -05:00
parent d2cb3caa54
commit 3f457333b5
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -311,7 +311,7 @@
<span class="text-small text-muted">Enable if you would like to automatically replace slurs.</span>
</div>
</div>
{% if SITE_NAME == 'rDrama' %}
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">
<label for="profanityreplacer">Profanity Replacer</label>
@ -324,7 +324,7 @@
<span class="text-small text-muted">Enable if you would like to automatically replace profanities.</span>
</div>
</div>
{% endif %}
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">
<label for="hidevotedon">Hide Posts Voted On</label>