diff --git a/mod/ping.php b/mod/ping.php index 5399129d43..81aa9ec620 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -350,9 +350,11 @@ function ping_init(App $a) } if ($format == 'json') { + $notification_count = $sysnotify_count + $intro_count + $register_count; + $data['groups'] = $groups_unseen; $data['forums'] = $forums_unseen; - $data['notification'] = $sysnotify_count + $intro_count + $register_count; + $data['notification'] = ($notification_count < 50) ? $notification_count : '49+'; $data['notifications'] = $notifications; $data['sysmsgs'] = [ 'notice' => $sysmsgs,