filter 2 slurs from pronouns

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-16 18:16:04 +02:00
parent 88d16db94b
commit 026d023c43
1 changed files with 4 additions and 0 deletions

View File

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