diff --git a/files/routes/comments.py b/files/routes/comments.py index 1b1b2f537..3ecdd0b74 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 07ddb5d96..881430c89 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: