From bc6d87afa88035e36e26254386adf2ec1d0c7cdb Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 5 Feb 2021 06:56:24 +0000 Subject: [PATCH] test again --- include/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index d14ca3e3e..b65cf77f6 100644 --- a/include/api.php +++ b/include/api.php @@ -1819,9 +1819,10 @@ function api_statuses_networkpublic_timeline($type) } $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)); + $statuses = Post::toArray(Post::select(Item::DISPLAY_FIELDLIST, $condition, $params)); if (empty($statuses)) { - return ['status' => [], 'statuses' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()]; + return ['status' => [], 'statuses2' => $statuses, 'condition' => $condition, 'params' => $params, 'db' => DBA::errorNo(), 'msg' => DBA::errorMessage()]; } $ret = api_format_items($statuses, $user_info, false, $type); if (empty($ret)) {