From 91d7e4fcd3e621172cd1924fe7aad900f8f6380a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Sep 2022 04:15:03 +0200 Subject: [PATCH] fix hats being lowecase in admiggers thread --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index b8f7b686bf..54c4b4dcd6 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -275,7 +275,7 @@ def comment(v): return {"error": str(e)}, 400 elif v.admin_level > 2 and parent_post.id == HAT_THREAD: try: - hat = loads(body.lower()) + hat = loads(body) name = hat["name"] if not hat_regex.fullmatch(name): return {"error": "Invalid name!"}, 400