]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Replace "q" calls
[friendica.git] / include / api.php
index b1ee607abbddf40afa1cbfa183f26d5a68382e1d..239417ea9f24f662793fd1de4fcb0e42d9357764 100644 (file)
@@ -5957,7 +5957,7 @@ function api_friendica_notification($type)
        }
        $nm = new NotificationsManager();
 
-       $notes = $nm->getAll([], "+seen -date", 50);
+       $notes = $nm->getAll([], ['seen' => 'ASC', 'date' => 'DESC'], 50);
 
        if ($type == "xml") {
                $xmlnotes = [];