master
Aevann1 2022-01-13 06:58:06 +02:00
parent 7273a97987
commit de353a43eb
1 changed files with 2 additions and 2 deletions

View File

@ -853,9 +853,9 @@ def admin_title_change(user_id, v):
new_name=request.values.get("title").strip()[:256]
user.customtitleplain=new_name
new_name = sanitize(new_name)
new_name = filter_emojis_only(new_name)
user=g.db.query(User).with_for_update().filter_by(id=user.id).one_or_none()
user=g.db.query(User).filter_by(id=user.id).one_or_none()
user.customtitle=new_name
if request.values.get("locked"): user.flairchanged = int(time.time()) + 2629746
g.db.add(user)