From dc8f230ae45f2f05facae8c05ab752a7a508b549 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Jun 2022 22:11:50 +0200 Subject: [PATCH] fix 500 error --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 6b9db86f3..21b18501a 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -761,8 +761,8 @@ def messagereply(v): g.db.delete(n) if PUSHER_ID != 'blahblahblah' and not v.shadowbanned: - if len(message) > 500: notifbody = message[:500] + '...' - else: notifbody = message + if len(body) > 500: notifbody = body[:500] + '...' + else: notifbody = body beams_client.publish_to_interests( interests=[f'{request.host}{user_id}'],