From 1196df4895ac589901dc202c4cdd2876b0e07613 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 5 Jun 2022 18:16:50 +0000 Subject: [PATCH] Remove test --- src/Module/Notifications/Ping.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php index 6dfb2db5af..7dc2158260 100644 --- a/src/Module/Notifications/Ping.php +++ b/src/Module/Notifications/Ping.php @@ -92,7 +92,7 @@ class Ping extends BaseModule } else { $notifications = $this->notificationRepo->selectDigestForUser(local_user()); } - $this->logger->info('Blubb-1', ['uid' => local_user(), 'count' => count($notifications)]); + $condition = [ "`unseen` AND `uid` = ? AND NOT `origin` AND (`vid` != ? OR `vid` IS NULL)", local_user(), Verb::getID(Activity::FOLLOW) @@ -200,7 +200,7 @@ class Ping extends BaseModule } }, $notifications->getArrayCopy()); $navNotifications = array_filter($navNotifications); - $this->logger->info('Blubb-2', ['uid' => local_user(), 'count' => count($navNotifications)]); + $sysnotify_count = array_reduce($navNotifications, function (int $carry, ValueObject\FormattedNavNotification $navNotification) { return $carry + ($navNotification->seen ? 0 : 1); }, 0); -- 2.39.5