forked from rDrama/rDrama
okay
parent
11cb694b7e
commit
72d658afac
|
@ -573,15 +573,12 @@ def edit_post(pid, v):
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if title != p.title or body != p.body:
|
|
||||||
|
|
||||||
if v.id == p.author_id:
|
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)
|
||||||
|
|
||||||
if not p.private and not p.ghost:
|
if not p.private and not p.ghost:
|
||||||
notify_users = NOTIFY_USERS(f'{title} {body}', v)
|
notify_users = NOTIFY_USERS(f'{p.title} {p.body}', v)
|
||||||
if notify_users:
|
if notify_users:
|
||||||
cid = notif_comment2(p)
|
cid = notif_comment2(p)
|
||||||
for x in notify_users:
|
for x in notify_users:
|
||||||
|
|
Loading…
Reference in New Issue