diff --git a/files/routes/settings.py b/files/routes/settings.py index e1a094452..77a84715f 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -900,6 +900,10 @@ def settings_pronouns_change(v): if not pronouns_regex.fullmatch(pronouns): return render_template("settings_profile.html", v=v, error="The pronouns you entered don't match the required format.") + bare_pronouns = pronouns.lower().replace('/', '') + if 'nig' in bare_pronouns: pronouns = 'BI/POC' + elif 'fag' in bare_pronouns: pronouns = 'cute/twink' + v.pronouns = pronouns g.db.add(v)