From a07f840c74f7889adf9cf14b5f790f2b11ee7a22 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 15 Mar 2022 07:05:59 -0400 Subject: [PATCH] Add correct ordering for detailed notifications --- src/Module/Notifications/Ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php index d97fb27fdf..03d3ae5f77 100644 --- a/src/Module/Notifications/Ping.php +++ b/src/Module/Notifications/Ping.php @@ -87,7 +87,7 @@ class Ping extends BaseModule if (local_user()) { if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) { - $notifications = $this->notificationRepo->selectForUser(local_user(), ['`vid` != ?', Verb::getID(\Friendica\Protocol\Activity::LIKE)], ['limit' => 50]); + $notifications = $this->notificationRepo->selectForUser(local_user(), ['`vid` != ?', Verb::getID(\Friendica\Protocol\Activity::LIKE)], ['limit' => 50, 'order' => ['id' => true]]); } else { $notifications = $this->notificationRepo->selectDigestForUser(local_user()); }