From de6dbead0d17ca4a009922229a6b6725fd8974b3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 10 Apr 2022 17:28:31 +0200 Subject: [PATCH] dsf --- 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 82ca9d5f6..80145c151 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -517,7 +517,7 @@ def edit_post(pid, v): p.body = body - if len(body_html) > 40000: return {"error":"Submission body too long!"}, 400 + if len(body_html) > 40000: return {"error":"Submission body_html too long! (max 40k characters)"}, 400 p.body_html = body_html @@ -1105,7 +1105,7 @@ def submit_post(v, sub=None): if v.marseyawarded and marseyaward_body_regex.search(body_html): return {"error":"You can only type marseys!"}, 403 - if len(body_html) > 40000: return error("Submission body too long!") + if len(body_html) > 40000: return error("Submission body_html too long! (max 40k characters)") bans = filter_comment_html(body_html) if bans: