]> git.mxchange.org Git - friendica.git/commitdiff
Add correct ordering for detailed notifications
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 11:05:59 +0000 (07:05 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 11:05:59 +0000 (07:05 -0400)
src/Module/Notifications/Ping.php

index d97fb27fdfced63f7f852b47c3cd93f5e7e16540..03d3ae5f77ebe7e0327edf25118e188bffab92db 100644 (file)
@@ -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());
                        }