forked from rDrama/rDrama
dont generate edit tag for drafts
parent
fa1bc2a2b0
commit
ab7878afe7
|
@ -1128,7 +1128,7 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
|
|
||||||
if v.id == p.author_id:
|
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())
|
p.edited_utc = int(time.time())
|
||||||
else:
|
else:
|
||||||
ma = ModAction(
|
ma = ModAction(
|
||||||
|
|
Loading…
Reference in New Issue