Add correct ordering for detailed notifications

This commit is contained in:
Hypolite Petovan 2022-03-15 07:05:59 -04:00
parent a30b553c28
commit a07f840c74

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