This commit is contained in:
Aevann1 2021-10-19 18:16:34 +02:00
parent 63c2cf26fb
commit f3b8490487
4 changed files with 10 additions and 12 deletions

View file

@ -853,16 +853,14 @@ def settings_title_change(v):
new_name=request.values.get("title").strip()[:100].replace("𒐪","")
if new_name==v.customtitle:
return render_template("settings_profile.html",
v=v,
error="You didn't change anything")
if new_name==v.customtitle: return render_template("settings_profile.html", v=v, error="You didn't change anything")
v.customtitleplain = new_name
v.customtitle = filter_title(new_name)
g.db.add(v)
g.db.commit()
if len(v.customtitle) < 1000:
g.db.add(v)
g.db.commit()
return redirect("/settings/profile")