diff --git a/include/api.php b/include/api.php index 844b7e079..0352a1a8f 100644 --- a/include/api.php +++ b/include/api.php @@ -2126,7 +2126,7 @@ function api_format_items_activities($item, $type = "json") */ function api_format_item($item, $type = "json") { - return DI::twitterStatus()->createFromUriId($item['uri-id'], $item['uid']); + return DI::twitterStatus()->createFromUriId($item['uri-id'], $item['uid'])->toArray(); $author_user = DI::twitterUser()->createFromContactId($item['author-id'], $item['uid'])->toArray(); $owner_user = DI::twitterUser()->createFromContactId($item['owner-id'], $item['uid'])->toArray();