Aevann 2023-06-08 06:55:22 +03:00
parent f9a72d1ea9
commit a21b2f66b5
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ def award_thing(v, thing_type, id):
abort(400, "Invalid username")
existing = get_user(new_name, graceful=True)
if existing:
if existing and existing.id != author.id:
abort(400, f"@{new_name} is already taken!")
if not author.prelock_username: