mirror of
https://github.com/friendica/friendica
synced 2025-04-28 08:24:23 +02:00
Use centralized function to fetch query results
This commit is contained in:
parent
2764859350
commit
69b7923df2
4 changed files with 16 additions and 3 deletions
|
@ -1461,7 +1461,7 @@ class Contact
|
|||
if ($pager->getStart() == 0) {
|
||||
$cdata = Contact::getPublicAndUserContactID($cid, local_user());
|
||||
if (!empty($cdata['public'])) {
|
||||
$pinned = DBA::selectToArray('collection-view', ['uri-id'], ['cid' => $cdata['public'], 'type' => Post\Collection::FEATURED]);
|
||||
$pinned = Post\Collection::selectToArrayForContact($cdata['public'], Post\Collection::FEATURED, ['uri-id']);
|
||||
$items = array_merge($items, $pinned);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue