forked from MarseyWorld/MarseyWorld
master
parent
6662ae8053
commit
1cb5008cf7
|
@ -466,7 +466,7 @@ def api_comment(v):
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
if parent.author.id != v.id:
|
if parent.author.id != v.id:
|
||||||
if len(c.body) > 100: notifbody = c.body[:100] + '...'
|
if len(c.body) > 500: notifbody = c.body[:500] + '...'
|
||||||
else: notifbody = c.body
|
else: notifbody = c.body
|
||||||
|
|
||||||
beams_client.publish_to_interests(
|
beams_client.publish_to_interests(
|
||||||
|
|
|
@ -434,7 +434,7 @@ def message2(v, username):
|
||||||
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) > 500: notifbody = message[:500] + '...'
|
||||||
else: notifbody = message
|
else: notifbody = message
|
||||||
|
|
||||||
beams_client.publish_to_interests(
|
beams_client.publish_to_interests(
|
||||||
|
@ -501,7 +501,7 @@ def messagereply(v):
|
||||||
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) > 500: notifbody = message[:500] + '...'
|
||||||
else: notifbody = message
|
else: notifbody = message
|
||||||
|
|
||||||
beams_client.publish_to_interests(
|
beams_client.publish_to_interests(
|
||||||
|
|
Loading…
Reference in New Issue