forked from rDrama/rDrama
master
parent
3e0808ee2e
commit
379e85647c
|
@ -497,10 +497,10 @@ def messagereply(v):
|
||||||
g.db.add(new_comment)
|
g.db.add(new_comment)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
||||||
|
if user_id != v.id:
|
||||||
notif = Notification(comment_id=new_comment.id, user_id=user_id)
|
notif = Notification(comment_id=new_comment.id, user_id=user_id)
|
||||||
g.db.add(notif)
|
g.db.add(notif)
|
||||||
|
|
||||||
|
|
||||||
if len(message) > 100: notifbody = message[:100] + '...'
|
if len(message) > 100: notifbody = message[:100] + '...'
|
||||||
else: notifbody = message
|
else: notifbody = message
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue