From 863cf24b680c82db7ca2676e71aa85bc7178c6e5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 15 Aug 2022 20:11:41 +0200 Subject: [PATCH] make max comment level 200 --- files/routes/comments.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 35e2f1279..81b348121 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -341,6 +341,9 @@ def comment(v): if len(body_html) > 20000: abort(400) + if level > 200: + return {"error": "Max comment level is 200"}, 400 + c = Comment(author_id=v.id, parent_submission=parent_submission, parent_comment_id=parent_comment_id,