This commit is contained in:
Aevann1 2022-03-01 03:40:43 +02:00
parent 351d09043d
commit eee2f5bff5
2 changed files with 3 additions and 1 deletions

View file

@ -268,7 +268,7 @@ def api_comment(v):
marsey = loads(body.lower())
name = marsey["name"]
if not marsey_regex.fullmatch(name):
if not marsey_regex2.fullmatch(name):
return {"error": "Invalid name!"}, 403
if "author" in marsey: author_id = get_user(marsey["author"]).id