vc
This commit is contained in:
parent
bea4c446d6
commit
033daf9e49
2 changed files with 40 additions and 44 deletions
|
@ -586,7 +586,6 @@ def api_comment(v):
|
||||||
if len(c.body) > 500: notifbody = c.body[:500] + '...'
|
if len(c.body) > 500: notifbody = c.body[:500] + '...'
|
||||||
else: notifbody = c.body
|
else: notifbody = c.body
|
||||||
|
|
||||||
try:
|
|
||||||
beams_client.publish_to_interests(
|
beams_client.publish_to_interests(
|
||||||
interests=[f'{request.host}{parent.author.id}'],
|
interests=[f'{request.host}{parent.author.id}'],
|
||||||
publish_body={
|
publish_body={
|
||||||
|
@ -609,7 +608,6 @@ def api_comment(v):
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except: pass
|
|
||||||
|
|
||||||
|
|
||||||
vote = CommentVote(user_id=v.id,
|
vote = CommentVote(user_id=v.id,
|
||||||
|
|
|
@ -562,7 +562,6 @@ def messagereply(v):
|
||||||
if len(message) > 500: notifbody = message[:500] + '...'
|
if len(message) > 500: notifbody = message[:500] + '...'
|
||||||
else: notifbody = message
|
else: notifbody = message
|
||||||
|
|
||||||
try:
|
|
||||||
beams_client.publish_to_interests(
|
beams_client.publish_to_interests(
|
||||||
interests=[f'{request.host}{user_id}'],
|
interests=[f'{request.host}{user_id}'],
|
||||||
publish_body={
|
publish_body={
|
||||||
|
@ -585,7 +584,6 @@ def messagereply(v):
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except: pass
|
|
||||||
|
|
||||||
|
|
||||||
if new_comment.top_comment.sentto == 2:
|
if new_comment.top_comment.sentto == 2:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue