forked from rDrama/rDrama
dsf
parent
49c1db511d
commit
de6dbead0d
|
@ -517,7 +517,7 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
p.body = body
|
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
|
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):
|
if v.marseyawarded and marseyaward_body_regex.search(body_html):
|
||||||
return {"error":"You can only type marseys!"}, 403
|
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)
|
bans = filter_comment_html(body_html)
|
||||||
if bans:
|
if bans:
|
||||||
|
|
Loading…
Reference in New Issue