From ab7878afe7be68724e921fd00fc9f9dcb6660466 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 26 Apr 2024 03:29:40 +0300 Subject: [PATCH] dont generate edit tag for drafts --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 5d9c26cf6..aafc1c342 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1128,7 +1128,7 @@ def edit_post(pid, v): if v.id == p.author_id: - if int(time.time()) - p.created_utc > 60 * 3: + if not p.draft and int(time.time()) - p.created_utc > 60 * 3: p.edited_utc = int(time.time()) else: ma = ModAction(