]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #11342 from MrPetovan/task/4639-soapbox-intro-notification
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 15 Mar 2022 11:28:24 +0000 (12:28 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Mar 2022 11:28:24 +0000 (12:28 +0100)
Add correct ordering for detailed notifications

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());
                        }