Testing tests
This commit is contained in:
parent
abbe7895ae
commit
598a09fc6f
1 changed files with 2 additions and 2 deletions
|
@ -498,14 +498,14 @@ function api_get_user($contact_id = null)
|
||||||
*/
|
*/
|
||||||
function api_item_get_user(App $a, $item)
|
function api_item_get_user(App $a, $item)
|
||||||
{
|
{
|
||||||
$status_user = DI::twitterUser()->createFromContactId($item['author-id'] ?? null, api_user())->toArray();
|
$status_user = DI::twitterUser()->createFromContactId($item['author-id'] ?? 0, api_user())->toArray();
|
||||||
|
|
||||||
$author_user = $status_user;
|
$author_user = $status_user;
|
||||||
|
|
||||||
$status_user["protected"] = isset($item['private']) && ($item['private'] == Item::PRIVATE);
|
$status_user["protected"] = isset($item['private']) && ($item['private'] == Item::PRIVATE);
|
||||||
|
|
||||||
if (($item['thr-parent'] ?? '') == ($item['uri'] ?? '')) {
|
if (($item['thr-parent'] ?? '') == ($item['uri'] ?? '')) {
|
||||||
$owner_user = DI::twitterUser()->createFromContactId($item['owner-id'] ?? null, api_user())->toArray();
|
$owner_user = DI::twitterUser()->createFromContactId($item['owner-id'] ?? 0, api_user())->toArray();
|
||||||
} else {
|
} else {
|
||||||
$owner_user = $author_user;
|
$owner_user = $author_user;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue