maxlength
This commit is contained in:
parent
310c40e524
commit
57d7e1e341
9 changed files with 13 additions and 23 deletions
|
@ -214,6 +214,8 @@ def edit_post(pid, v):
|
|||
title = request.values.get("title", "").strip()
|
||||
body = request.values.get("body", "").strip()
|
||||
|
||||
if len(body) > 10000: return {"error":"Character limit is 10000!"}, 403
|
||||
|
||||
if v.marseyawarded:
|
||||
if time.time() > v.marseyawarded:
|
||||
v.marseyawarded = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue