From 3ecc3d1ebf0c0a3e0c90c87a41567550630e2b25 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 16 May 2023 06:28:13 +0300 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4161734#context --- files/routes/awards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index af6fe4386..4a0371b5e 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -360,7 +360,8 @@ def award_thing(v, thing_type, id): if existing: abort(400, f"@{new_name} is already taken!") - author.prelock_username = author.username + if not author.prelock_username: + author.prelock_username = author.username author.username = new_name author.namechanged = int(time.time()) + 86400 badge_grant(user=author, badge_id=281)