forked from rDrama/rDrama
make max comment level 200
parent
16626ceb4f
commit
863cf24b68
|
@ -341,6 +341,9 @@ def comment(v):
|
||||||
|
|
||||||
if len(body_html) > 20000: abort(400)
|
if len(body_html) > 20000: abort(400)
|
||||||
|
|
||||||
|
if level > 200:
|
||||||
|
return {"error": "Max comment level is 200"}, 400
|
||||||
|
|
||||||
c = Comment(author_id=v.id,
|
c = Comment(author_id=v.id,
|
||||||
parent_submission=parent_submission,
|
parent_submission=parent_submission,
|
||||||
parent_comment_id=parent_comment_id,
|
parent_comment_id=parent_comment_id,
|
||||||
|
|
Loading…
Reference in New Issue