forked from rDrama/rDrama
profanity: per fish request disable profanity filter everywhere but rdrama
feel free to revert this or whatever if discussedmaster
parent
d2cb3caa54
commit
3f457333b5
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue