Remove test

This commit is contained in:
Michael 2022-06-05 18:16:50 +00:00
parent 001aac9952
commit 1196df4895

View File

@ -92,7 +92,7 @@ class Ping extends BaseModule
} else { } else {
$notifications = $this->notificationRepo->selectDigestForUser(local_user()); $notifications = $this->notificationRepo->selectDigestForUser(local_user());
} }
$this->logger->info('Blubb-1', ['uid' => local_user(), 'count' => count($notifications)]);
$condition = [ $condition = [
"`unseen` AND `uid` = ? AND NOT `origin` AND (`vid` != ? OR `vid` IS NULL)", "`unseen` AND `uid` = ? AND NOT `origin` AND (`vid` != ? OR `vid` IS NULL)",
local_user(), Verb::getID(Activity::FOLLOW) local_user(), Verb::getID(Activity::FOLLOW)
@ -200,7 +200,7 @@ class Ping extends BaseModule
} }
}, $notifications->getArrayCopy()); }, $notifications->getArrayCopy());
$navNotifications = array_filter($navNotifications); $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) { $sysnotify_count = array_reduce($navNotifications, function (int $carry, ValueObject\FormattedNavNotification $navNotification) {
return $carry + ($navNotification->seen ? 0 : 1); return $carry + ($navNotification->seen ? 0 : 1);
}, 0); }, 0);