]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
New function to fetch item data especially for users
[friendica.git] / mod / ping.php
index 0256500dfe12fd0b92eb683a29c20741bedfc869..06d83a1d9a073d8870dc2f2570ca004c391c71e6 100644 (file)
@@ -132,7 +132,7 @@ function ping_init(App $a)
                $fields = ['id', 'parent', 'verb', 'author-name', 'unseen', 'author-link', 'author-avatar', 'contact-avatar',
                        'network', 'created', 'object', 'parent-author-name', 'parent-author-link', 'parent-guid'];
                $params = ['order' => ['created' => true]];
-               $items = Item::select(local_user(), $fields, $condition, $params);
+               $items = Item::selectForUser(local_user(), $fields, $condition, $params);
 
                if (DBM::is_result($items)) {
                        $items_unseen = dba::inArray($items);