master
Aevann1 2021-10-27 03:11:35 +02:00
parent 2d0fda3fd2
commit 2c649bc2a9
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ def edit_post(pid, v):
body = request.values.get("body", "").strip()
if v.marseyawarded:
title = list(re.finditer("^(:!?m\w+:\s*)+$", title))
marregex = list(re.finditer("^(:!?m\w+:\s*)+$", title))
if len(marregex) == 0: return {"error":"You need to only type marseys!"}, 403
if body:
marregex = list(re.finditer("^(:!?m\w+:\s*)+$", body))
@ -570,7 +570,7 @@ def submit_post(v):
body = request.values.get("body", "").strip()
if v.marseyawarded:
title = list(re.finditer("^(:!?m\w+:\s*)+$", title))
marregex = list(re.finditer("^(:!?m\w+:\s*)+$", title))
if len(marregex) == 0: return {"error":"You need to only type marseys!"}, 403
if body:
marregex = list(re.finditer("^(:!?m\w+:\s*)+$", body))