count <p> instead since some ppl use \n instead of \n\n

pull/226/head
Aevann 2024-04-06 02:32:58 +02:00
parent 01af04dd80
commit eb6b623b2c
1 changed files with 1 additions and 1 deletions

View File

@ -2166,7 +2166,7 @@ def mark_effortpost(pid, v):
min_chars = 3000 min_chars = 3000
min_lines = 40 min_lines = 40
if len(p.body) < min_chars or p.body.count('\n') < min_lines: if len(p.body) < min_chars or p.body_html.count('<p>') < min_lines:
abort(403, "Post is too short!") abort(403, "Post is too short!")
p.effortpost = True p.effortpost = True