forked from rDrama/rDrama
master
parent
9bf90ee660
commit
c8a40deb97
|
@ -638,6 +638,8 @@ def edit_comment(cid, v):
|
|||
if v.marseyawarded and marseyaward_body_regex.search(body_html):
|
||||
abort(403, "You can only type marseys!")
|
||||
|
||||
oldtext = c.body
|
||||
|
||||
c.body = body
|
||||
|
||||
c.body_html = body_html
|
||||
|
@ -654,7 +656,7 @@ def edit_comment(cid, v):
|
|||
|
||||
g.db.add(c)
|
||||
|
||||
notify_users = NOTIFY_USERS(body, v, c.body, ghost=c.ghost, log_cost=c)
|
||||
notify_users = NOTIFY_USERS(body, v, oldtext=oldtext, ghost=c.ghost, log_cost=c)
|
||||
|
||||
if notify_users == 'everyone':
|
||||
alert_everyone(c.id)
|
||||
|
|
|
@ -1029,7 +1029,7 @@ def edit_post(pid, v):
|
|||
|
||||
|
||||
if not p.private:
|
||||
notify_users = NOTIFY_USERS(f'{title} {body}', v, f'{p.title} {p.body}', ghost=p.ghost, log_cost=p)
|
||||
notify_users = NOTIFY_USERS(f'{title} {body}', v, oldtext=f'{p.title} {p.body}', ghost=p.ghost, log_cost=p)
|
||||
if notify_users:
|
||||
cid, text = notif_comment2(p)
|
||||
if notify_users == 'everyone':
|
||||
|
|
|
@ -273,7 +273,7 @@ def settings_personal_post(v):
|
|||
|
||||
friends = friends[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT]
|
||||
|
||||
notify_users = NOTIFY_USERS(friends, v, v.friends)
|
||||
notify_users = NOTIFY_USERS(friends, v, oldtext=v.friends)
|
||||
|
||||
if notify_users:
|
||||
text = f"@{v.username} has added you to their friends list!"
|
||||
|
@ -304,7 +304,7 @@ def settings_personal_post(v):
|
|||
|
||||
enemies = enemies[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT]
|
||||
|
||||
notify_users = NOTIFY_USERS(enemies, v, v.enemies)
|
||||
notify_users = NOTIFY_USERS(enemies, v, oldtext=v.enemies)
|
||||
if notify_users:
|
||||
text = f"@{v.username} has added you to their enemies list!"
|
||||
cid = notif_comment(text)
|
||||
|
|
Loading…
Reference in New Issue