mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:10:12 +00: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
|
@ -209,7 +209,7 @@ class Status extends BaseProfile
|
|||
|
||||
if ($pager->getStart() == 0 && !empty($profile['uid'])) {
|
||||
$pcid = Contact::getPublicIdByUserId($profile['uid']);
|
||||
$pinned = DBA::selectToArray('collection-view', [], ['cid' => $pcid, 'type' => Post\Collection::FEATURED]);
|
||||
$pinned = Post\Collection::selectToArrayForContact($pcid, Post\Collection::FEATURED);
|
||||
$items = array_merge($items, $pinned);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue