From 5a9ec841af46c91a794b6ca2b560ece0fbf6290a Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 25 Jan 2020 17:25:11 +0100 Subject: [PATCH] Make Notification bubble work again --- mod/ping.php | 4 ++-- view/js/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/ping.php b/mod/ping.php index f9dd7faf27..0c758bd4f8 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -41,7 +41,7 @@ use Friendica\Util\XML; * "birthdays-today": 0, * "groups": [ ], * "forums": [ ], - * "notify": 0, + * "notification": 0, * "notifications": [ ], * "sysmsgs": { * "notice": [ ], @@ -351,7 +351,7 @@ function ping_init(App $a) if ($format == 'json') { $data['groups'] = $groups_unseen; $data['forums'] = $forums_unseen; - $data['notify'] = $sysnotify_count + $intro_count + $register_count; + $data['notification'] = $sysnotify_count + $intro_count + $register_count; $data['notifications'] = $notifications; $data['sysmsgs'] = [ 'notice' => $sysmsgs, diff --git a/view/js/main.js b/view/js/main.js index 6ca0fabb86..95ee4b8ed9 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -245,7 +245,7 @@ $(function() { window.location.href=window.location.href } - ['net', 'home', 'intro', 'mail', 'events', 'birthdays', 'notify'].forEach(function(type) { + ['net', 'home', 'intro', 'mail', 'events', 'birthdays', 'notification'].forEach(function(type) { var number = data[type]; if (number == 0) { number = ''; @@ -349,7 +349,7 @@ $(function() { }); } - var notif = data['notify']; + var notif = data['notification']; if (notif > 0) { $("#nav-notifications-linkmenu").addClass("on"); } else { -- 2.39.5