forked from MarseyWorld/MarseyWorld
master
parent
06aeb49e07
commit
21eb20c9df
|
@ -467,9 +467,9 @@ def api_comment(v):
|
|||
|
||||
if parent.author.id != v.id:
|
||||
if len(c.body) > 500: notifbody = c.body[:500] + '...'
|
||||
elif c.body: notifbody = c.body
|
||||
else: notifbody = ''
|
||||
else: notifbody = c.body
|
||||
|
||||
try:
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{parent.author.id}'],
|
||||
publish_body={
|
||||
|
@ -492,7 +492,9 @@ def api_comment(v):
|
|||
}
|
||||
},
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print(c.id)
|
||||
|
||||
|
||||
vote = CommentVote(user_id=v.id,
|
||||
|
|
|
@ -437,8 +437,7 @@ def message2(v, username):
|
|||
g.db.add(notif)
|
||||
|
||||
if len(message) > 500: notifbody = message[:500] + '...'
|
||||
elif message: notifbody = message
|
||||
else: notifbody = ''
|
||||
else: notifbody = message
|
||||
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{user.id}'],
|
||||
|
@ -505,8 +504,7 @@ def messagereply(v):
|
|||
g.db.add(notif)
|
||||
|
||||
if len(message) > 500: notifbody = message[:500] + '...'
|
||||
elif message: notifbody = message
|
||||
else: notifbody = ''
|
||||
else: notifbody = message
|
||||
|
||||
beams_client.publish_to_interests(
|
||||
interests=[f'{request.host}{user_id}'],
|
||||
|
|
Loading…
Reference in New Issue