wut
This commit is contained in:
parent
36afb28fe7
commit
eb9d874e66
1 changed files with 12 additions and 10 deletions
|
@ -574,7 +574,9 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (title != p.title or body != p.body) and v.id == p.author_id:
|
if title != p.title or body != p.body:
|
||||||
|
|
||||||
|
if v.id == p.author_id:
|
||||||
if int(time.time()) - p.created_utc > 60 * 3: p.edited_utc = int(time.time())
|
if int(time.time()) - p.created_utc > 60 * 3: p.edited_utc = int(time.time())
|
||||||
g.db.add(p)
|
g.db.add(p)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue