From 5ce276854d876837ebc718d737b1c30b771ce362 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Jun 2022 00:21:37 +0200 Subject: [PATCH] remove the 1wk edit limit for posts, but keep it for comments --- files/routes/posts.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index b0ddd1e96..b321d77ed 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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('‎','')