forked from rDrama/rDrama
1
0
Fork 0

fix hats being lowecase in admiggers thread

master
Aevann1 2022-09-03 04:15:03 +02:00
parent 4ba9965dde
commit 91d7e4fcd3
1 changed files with 1 additions and 1 deletions

View File

@ -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