From a21b2f66b59645fa5a7bd278b8c972174e8989aa Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 8 Jun 2023 06:55:22 +0300 Subject: [PATCH] fix this https://rdrama.net/post/172930/as-requested-by-kissingerfanboynocarp-heres-birdenthiusts/4213135#context --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 02fe975f34..e97d487816 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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: