diff --git a/files/routes/comments.py b/files/routes/comments.py index 8da62af62..166c4ef3d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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( diff --git a/files/routes/users.py b/files/routes/users.py index 5fdcf7ca7..cb423d2fa 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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(