fdsfds
This commit is contained in:
parent
16affdb596
commit
ac4fc57078
3 changed files with 12 additions and 12 deletions
|
@ -157,7 +157,7 @@ def api_comment(v):
|
|||
else: top_comment_id = parent.top_comment_id
|
||||
else: abort(400)
|
||||
|
||||
body = request.values.get("body", "").strip()[:10000]
|
||||
body = request.values.get("body", "").strip()[:10000].upper()
|
||||
|
||||
if v.marseyawarded:
|
||||
if time.time() > v.marseyawarded:
|
||||
|
@ -615,7 +615,7 @@ def edit_comment(cid, v):
|
|||
|
||||
if c.is_banned or c.deleted_utc > 0: abort(403)
|
||||
|
||||
body = request.values.get("body", "").strip()[:10000]
|
||||
body = request.values.get("body", "").strip()[:10000].upper()
|
||||
if len(body) < 1: return {"error":"You have to actually type something!"}, 400
|
||||
|
||||
if body != c.body and body != "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue