sforkowany z mirror/friendica
And again ...
rodzic
686bf6b32f
commit
3446829a19
|
@ -1821,11 +1821,11 @@ function api_statuses_networkpublic_timeline($type)
|
||||||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
||||||
$statuses = Post::toArray(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 ['status' => [], 'statuses' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
||||||
}
|
}
|
||||||
$ret = api_format_items($statuses, $user_info, false, $type);
|
$ret = api_format_items($statuses, $user_info, false, $type);
|
||||||
if (empty($ret)) {
|
if (empty($ret)) {
|
||||||
return ['ret' => $ret, 'test' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
return ['status' => [], 'ret' => $ret, 'statuses' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()];
|
||||||
}
|
}
|
||||||
bindComments($ret);
|
bindComments($ret);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue