From 1cb5008cf72d49aa2cd2211f3e79bb1f2f60cf4b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 16 Jan 2022 09:42:05 +0200 Subject: [PATCH] bb --- files/routes/comments.py | 2 +- files/routes/users.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(