1
1
Fork 0

Fix return type

This commit is contained in:
Michael 2021-11-23 15:27:57 +00:00
parent 082aa1bf65
commit 0c3e491410

View file

@ -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();