Issue 11156: Display "49+" notifications if there are 50 or more

pull/11197/head
Michael 2022-02-01 05:27:11 +00:00
rodzic 6b93becf7b
commit 4658cc505b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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,