mirror of
https://github.com/friendica/friendica
synced 2024-11-18 22:23:42 +00:00
Some more debug output
This commit is contained in:
parent
289923a17c
commit
686bf6b32f
1 changed files with 5 additions and 3 deletions
|
@ -1819,12 +1819,14 @@ function api_statuses_networkpublic_timeline($type)
|
||||||
}
|
}
|
||||||
|
|
||||||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
||||||
$statuses = Post::selectForUser(api_user(), Item::DISPLAY_FIELDLIST, $condition, $params);
|
$statuses = Post::toArray(Post::selectForUser(api_user(), Item::DISPLAY_FIELDLIST, $condition, $params));
|
||||||
if (empty($statuses)) {
|
if (empty($statuses)) {
|
||||||
return ['test' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
return ['test' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
||||||
}
|
}
|
||||||
$ret = api_format_items(Post::toArray($statuses), $user_info, false, $type);
|
$ret = api_format_items($statuses, $user_info, false, $type);
|
||||||
|
if (empty($ret)) {
|
||||||
|
return ['ret' => $ret, 'test' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
||||||
|
}
|
||||||
bindComments($ret);
|
bindComments($ret);
|
||||||
|
|
||||||
$data = ['status' => $ret];
|
$data = ['status' => $ret];
|
||||||
|
|
Loading…
Reference in a new issue