]> git.mxchange.org Git - friendica.git/commitdiff
Improved logging
authorMichael <heluecht@pirati.ca>
Thu, 3 Aug 2023 20:36:19 +0000 (20:36 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 3 Aug 2023 20:36:19 +0000 (20:36 +0000)
src/Module/Search/Index.php

index 9ec8c9dd6d898e9d398103d83f5a5357513cd0f0..f1d99bdf134c57b419f9e45892548d46e745521a 100644 (file)
@@ -173,7 +173,7 @@ class Index extends BaseSearch
                $pager = new Pager(DI::l10n(), DI::args()->getQueryString(), $itemsPerPage);
 
                if ($tag) {
-                       Logger::info('Start tag search.', ['q' => $search]);
+                       Logger::info('Start tag search.', ['q' => $search, 'start' => $pager->getStart(), 'items' => $pager->getItemsPerPage(), 'last' => $last_uriid]);
                        $uriids = Tag::getURIIdListByTag($search, DI::userSession()->getLocalUserId(), $pager->getStart(), $pager->getItemsPerPage(), $last_uriid);
                        $count = Tag::countByTag($search, DI::userSession()->getLocalUserId());
                } else {
@@ -185,7 +185,7 @@ class Index extends BaseSearch
                if (!empty($uriids)) {
                        $condition = ["(`uid` = ? OR (`uid` = ? AND NOT `global`))", 0, DI::userSession()->getLocalUserId()];
                        $condition = DBA::mergeConditions($condition, ['uri-id' => $uriids]);
-                       $params = ['order' => ['id' => true]];
+                       $params = ['order' => ['uri-id' => true]];
                        $items = Post::toArray(Post::selectForUser(DI::userSession()->getLocalUserId(), Item::DISPLAY_FIELDLIST, $condition, $params));
                }