dont generate edit tag for drafts

master
Aevann 2024-04-26 03:29:40 +03:00
parent fa1bc2a2b0
commit ab7878afe7
1 changed files with 1 additions and 1 deletions

View File

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