fix 500 error

master
Aevann1 2022-08-05 17:29:40 +02:00
parent 981692550f
commit 3aab5240f3
1 changed files with 2 additions and 2 deletions

View File

@ -876,8 +876,8 @@ def settings_title_change(v):
v.customtitle = filter_emojis_only(new_name)
if len(v.customtitle) < 1000:
g.db.add(v)
if len(v.customtitle) > 1000:
return render_template("settings_profile.html", v=v, error="Flair too long")
return redirect("/settings/profile")