Remove slur replacer toggle from settings.

The Slur Replacer feature from rDrama has already been removed, but
the toggle for it in settings remained. A user in Discord pointed out
it was confusing and potentially disconcerting to have a default-on
toggle to 'enable slurs'.
This commit is contained in:
TLSM 2022-09-06 05:13:53 -04:00 committed by Ben Rog-Wilhelm
parent 7a6f95a3b1
commit e40228d7ee
3 changed files with 1 additions and 33 deletions

View file

@ -28,12 +28,6 @@ AJ_REPLACEMENTS = {
' TO ': " TOO ",
}
SLURS = {
}
single_words = "|".join([slur.lower() for slur in SLURS.keys()])
NOTIFICATIONS_ID = 1
AUTOJANNY_ID = 2
SNAPPY_ID = 3

View file

@ -49,10 +49,6 @@ def settings_profile_post(v):
updated = True
v.reddit = reddit
elif request.values.get("slurreplacer", v.slurreplacer) != v.slurreplacer:
updated = True
v.slurreplacer = request.values.get("slurreplacer") == 'true'
elif request.values.get("hidevotedon", v.hidevotedon) != v.hidevotedon:
updated = True
v.hidevotedon = request.values.get("hidevotedon") == 'true'

View file

@ -244,7 +244,7 @@
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">
<label for="slurreplacer">Disable +18 Warnings</label>
<label for="over18">Disable +18 Warnings</label>
</div>
<div class="body w-lg-100">
@ -260,28 +260,6 @@
</div>
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">
<label for="slurreplacer">Slur Replacer</label>
</div>
<div class="body w-lg-100">
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="slurreplacer" name="slurreplacer"{% if v.slurreplacer %} checked{% endif %} onchange="post_toast(this,'/settings/profile?slurreplacer='+document.getElementById('slurreplacer').checked);">
<label class="custom-control-label" for="slurreplacer"></label>
</div>
<span class="text-small-extra text-muted">Enable if you would like to automatically replace slurs.</span>
</div>
</div>
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">