Fix return type
This commit is contained in:
parent
082aa1bf65
commit
0c3e491410
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue