From a0e0605f0c84784a2a9d01e2434081a97f0dfd15 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 15 Jan 2022 11:48:52 +0200 Subject: [PATCH] bbb --- files/routes/comments.py | 4 +++- files/routes/users.py | 4 +++- files/templates/admin/admin_home.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index a1386f14b..b0a870f8f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -481,7 +481,9 @@ def api_comment(v): 'notification': { 'title': f'New reply by @{v.username}', 'body': c.body, - 'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context', + }, + 'data': { + 'url': f'https://{site}/notifications', } } }, diff --git a/files/routes/users.py b/files/routes/users.py index 2f8701ea7..ebdb19a90 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -450,7 +450,9 @@ def message2(v, username): 'notification': { 'title': f'New reply by @{v.username}', 'body': c.body, - 'deep_link': f'https://{site}/notifications', + }, + 'data': { + 'url': f'https://{site}/notifications', } } }, diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index ec977a8fb..9d44c1d2c 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -73,7 +73,7 @@ {% endif %} - +