From 8d28f199a639851d0dbc6725b105b87ecb50c19f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 4 Mar 2019 05:59:53 -0500 Subject: [PATCH] Test fix: Add expected author-network field to api_get_item() result --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 292068b511..841ed1a719 100644 --- a/include/api.php +++ b/include/api.php @@ -1294,7 +1294,7 @@ function api_get_last_status($ownerId, $uid, $type = 'json') */ function api_get_item(array $condition) { - $item = Item::selectFirst(Item::ITEM_FIELDLIST, $condition, ['order' => ['id' => true]]); + $item = Item::selectFirst(Item::DISPLAY_FIELDLIST, $condition, ['order' => ['id' => true]]); return $item; } -- 2.39.5