fsd
parent
d5c65845d4
commit
f122f289b9
|
@ -552,8 +552,9 @@ def api_comment(v):
|
|||
|
||||
if parent.author.id != v.id and PUSHER_ID:
|
||||
if len(c.body) > 500: notifbody = c.body[:500] + '...'
|
||||
else: notifbody = c.body or 'no body'
|
||||
else: notifbody = c.body
|
||||
|
||||
try:
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{parent.author.id}'],
|
||||
publish_body={
|
||||
|
@ -576,6 +577,7 @@ def api_comment(v):
|
|||
}
|
||||
},
|
||||
)
|
||||
except: pass
|
||||
|
||||
|
||||
vote = CommentVote(user_id=v.id,
|
||||
|
|
|
@ -494,6 +494,7 @@ def message2(v, username):
|
|||
if len(message) > 500: notifbody = message[:500] + '...'
|
||||
else: notifbody = message
|
||||
|
||||
try:
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{user.id}'],
|
||||
publish_body={
|
||||
|
@ -516,6 +517,7 @@ def message2(v, username):
|
|||
}
|
||||
},
|
||||
)
|
||||
except: pass
|
||||
|
||||
g.db.commit()
|
||||
|
||||
|
@ -562,6 +564,7 @@ def messagereply(v):
|
|||
if len(message) > 500: notifbody = message[:500] + '...'
|
||||
else: notifbody = message
|
||||
|
||||
try:
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{user_id}'],
|
||||
publish_body={
|
||||
|
@ -584,6 +587,7 @@ def messagereply(v):
|
|||
}
|
||||
},
|
||||
)
|
||||
except: pass
|
||||
|
||||
|
||||
if new_comment.top_comment.sentto == 0:
|
||||
|
|
Loading…
Reference in New Issue