From da227a241015d10bf03629eca833213553838930 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 15 Jan 2022 10:22:49 +0200 Subject: [PATCH] bbb --- files/routes/comments.py | 8 +++++++- files/routes/users.py | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 1b1b2f5372..3ecdd0b74d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -475,8 +475,14 @@ def api_comment(v): 'title': f'New reply by @{v.username}', 'body': c.body, 'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context', - }, + } }, + 'fcm': { + 'notification': { + 'title': f'New reply by @{v.username}', + 'body': c.body, + } + } }, ) except Exception as e: diff --git a/files/routes/users.py b/files/routes/users.py index 07ddb5d966..881430c894 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -444,8 +444,14 @@ def message2(v, username): 'title': f'New message from @{v.username}', 'body': message, 'deep_link': f'https://{site}/notifications', - }, + } }, + 'fcm': { + 'notification': { + 'title': f'New reply by @{v.username}', + 'body': c.body, + } + } }, ) except Exception as e: