forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-16 09:42:05 +02:00
parent 6662ae8053
commit 1cb5008cf7
2 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ def api_comment(v):
g.db.add(n)
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
beams_client.publish_to_interests(

View File

@ -434,7 +434,7 @@ def message2(v, username):
notif = Notification(comment_id=new_comment.id, user_id=user.id)
g.db.add(notif)
if len(message) > 100: notifbody = message[:100] + '...'
if len(message) > 500: notifbody = message[:500] + '...'
else: notifbody = message
beams_client.publish_to_interests(
@ -501,7 +501,7 @@ def messagereply(v):
notif = Notification(comment_id=new_comment.id, user_id=user_id)
g.db.add(notif)
if len(message) > 100: notifbody = message[:100] + '...'
if len(message) > 500: notifbody = message[:500] + '...'
else: notifbody = message
beams_client.publish_to_interests(