remove the 1wk edit limit for posts, but keep it for comments

master
Aevann1 2022-06-25 00:21:37 +02:00
parent ab1f6fac65
commit 5ce276854d
1 changed files with 0 additions and 6 deletions

View File

@ -400,12 +400,6 @@ def morecomments(v, cid):
def edit_post(pid, v):
p = get_post(pid)
if not v.admin_level >= 3:
if time.time() - p.created_utc > 7*24*60*60 and not p.private:
return {"error":"You can't edit posts older than 1 week!"}, 403
elif p.author_id != v.id:
abort(403)
title = request.values.get("title", "").strip().replace('','')
body = request.values.get("body", "").strip().replace('','')