]> git.mxchange.org Git - friendica.git/commitdiff
Test fix: Add expected author-network field to api_get_item() result
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Mar 2019 10:59:53 +0000 (05:59 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 18:28:54 +0000 (14:28 -0400)
include/api.php

index 292068b511e8866f9f6967622c73106080e823c9..841ed1a7192a633e8ff587114141b84548e5f1fb 100644 (file)
@@ -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;
 }