mirror of
https://github.com/friendica/friendica
synced 2024-11-18 18:23:40 +00:00
$r was still in use
This commit is contained in:
parent
50dfc7d36e
commit
b6c344a80a
1 changed files with 4 additions and 2 deletions
|
@ -1695,11 +1695,13 @@ function api_statuses_home_timeline($type)
|
|||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
||||
$statuses = Item::select(api_user(), [], $condition, $params);
|
||||
|
||||
$ret = api_format_items(dba::inArray($statuses), $user_info, false, $type);
|
||||
$items = dba::inArray($statuses);
|
||||
|
||||
$ret = api_format_items($items, $user_info, false, $type);
|
||||
|
||||
// Set all posts from the query above to seen
|
||||
$idarray = [];
|
||||
foreach ($r as $item) {
|
||||
foreach ($items as $item) {
|
||||
$idarray[] = intval($item["id"]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue