Merge pull request #11342 from MrPetovan/task/4639-soapbox-intro-notification

Add correct ordering for detailed notifications
This commit is contained in:
Tobias Diekershoff 2022-03-15 12:28:24 +01:00 committed by GitHub
commit 79772214ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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