mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
Merge pull request #5803 from annando/issue-5798
Issue 5798: We had displayed the author as owner
This commit is contained in:
commit
d5804bd1a5
1 changed files with 12 additions and 12 deletions
|
@ -819,7 +819,7 @@ function api_item_get_user(App $a, $item)
|
||||||
$status_user["protected"] = defaults($item, 'private', 0);
|
$status_user["protected"] = defaults($item, 'private', 0);
|
||||||
|
|
||||||
if (defaults($item, 'thr-parent', '') == defaults($item, 'uri', '')) {
|
if (defaults($item, 'thr-parent', '') == defaults($item, 'uri', '')) {
|
||||||
$owner_user = api_get_user($a, defaults($item, 'author-id', null));
|
$owner_user = api_get_user($a, defaults($item, 'owner-id', null));
|
||||||
} else {
|
} else {
|
||||||
$owner_user = $status_user;
|
$owner_user = $status_user;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue