forked from rDrama/rDrama
1
0
Fork 0

make max comment level 200

master
Aevann1 2022-08-15 20:11:41 +02:00
parent 16626ceb4f
commit 863cf24b68
1 changed files with 3 additions and 0 deletions

View File

@ -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,