filter 2 slurs from pronouns
parent
88d16db94b
commit
026d023c43
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue