maxlength

This commit is contained in:
Aevann1 2021-10-29 18:57:50 +02:00
parent 310c40e524
commit 57d7e1e341
9 changed files with 13 additions and 23 deletions

View file

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