Get rid of the "item" table, enhanced "post" tables
[friendica.git/.git] / src / Module / Search / Index.php
index 78f2008..e0050f4 100644 (file)
@@ -172,7 +172,7 @@ class Index extends BaseSearch
 
                if (!empty($uriids)) {
                        $params = ['order' => ['id' => true], 'group_by' => ['uri-id']];
-                       $items = Post::toArray(Post::selectForUser(local_user(), [], ['uri-id' => $uriids], $params));
+                       $items = Post::toArray(Post::selectForUser(local_user(), Item::DISPLAY_FIELDLIST, ['uri-id' => $uriids], $params));
                }
 
                if (empty($items)) {