From 2c649bc2a9d3dc0e8799c98b8f3caa0e61190680 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 27 Oct 2021 03:11:35 +0200 Subject: [PATCH] dsffsd --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index a1523d1f8..2dc5955ad 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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))