forked from rDrama/rDrama
1
0
Fork 0

try not limiting push notifs body size and see what happens

master
Aevann 2023-02-25 20:16:28 +02:00
parent 49c0264afd
commit 0a8bb14c64
1 changed files with 2 additions and 8 deletions

View File

@ -527,12 +527,9 @@ def message2(v:User, username:str):
if not v.shadowbanned:
title = f'New message from @{v.username}'
if len(message) > 500: notifbody = message[:500] + '...'
else: notifbody = message
url = f'{SITE_FULL}/notifications/messages'
push_notif({user.id}, title, notifbody, url)
push_notif({user.id}, title, message, url)
return {"message": "Message sent!"}
@ -597,12 +594,9 @@ def messagereply(v:User):
if not v.shadowbanned:
title = f'New message from @{v.username}'
if len(body) > 500: notifbody = body[:500] + '...'
else: notifbody = body
url = f'{SITE_FULL}/notifications/messages'
push_notif({user_id}, title, notifbody, url)
push_notif({user_id}, title, body, url)
top_comment = c.top_comment(g.db)