mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +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
|
@ -999,7 +999,7 @@ class Processor
|
|||
return;
|
||||
}
|
||||
|
||||
$posts = DBA::selectToArray('collection-view', ['uri-id'], ['cid' => $pcid, 'type' => Post\Collection::FEATURED]);
|
||||
$posts = Post\Collection::selectToArrayForContact($pcid, Post\Collection::FEATURED);
|
||||
if (!empty($posts)) {
|
||||
$old_featured = array_column($posts, 'uri-id');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue