From 272e79b529c432d1f9384c5c1209c15bdadf3390 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 6 Nov 2022 04:41:04 -0600 Subject: [PATCH] enable feature flag on testing environment --- files/helpers/const.py | 1 + files/templates/settings_personal.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 817b63094..25f111075 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -592,6 +592,7 @@ elif SITE == 'watchpeopledie.tv': else: # localhost or testing environment implied FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True + FEATURES['USERS_PERMANENT_WORD_FILTERS'] = True HOUSES = ["None","Furry","Femboy","Vampire","Racist"] if FEATURES['HOUSES'] else ["None"] diff --git a/files/templates/settings_personal.html b/files/templates/settings_personal.html index 4e97998c0..75ecf6c35 100644 --- a/files/templates/settings_personal.html +++ b/files/templates/settings_personal.html @@ -219,8 +219,8 @@ {% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer %} {% set ns.profanitytext = 'Enable if you would like to automatically replace profanities. Make filter permanent for a badge!' %} {% endif %} - {{common.toggle_section("Slur Replacer", "slurreplacer", v.slurreplacer, slurtext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer > 1)}} - {{common.toggle_section("Profanity Replacer", "profanityreplacer", v.slurreplacer, profanitytext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer > 1)}} + {{common.toggle_section("Slur Replacer", "slurreplacer", v.slurreplacer, ns.slurtext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer > 1)}} + {{common.toggle_section("Profanity Replacer", "profanityreplacer", v.slurreplacer, ns.profanitytext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer > 1)}} {# profanity filter toggle (and lock?) #} {# slur filter toggle (and lock?) #}