1
0
Fork 0

Merge pull request #5803 from annando/issue-5798

Issue 5798: We had displayed the author as owner
This commit is contained in:
Hypolite Petovan 2018-10-01 13:40:52 -04:00 committed by GitHub
commit d5804bd1a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -819,7 +819,7 @@ function api_item_get_user(App $a, $item)
$status_user["protected"] = defaults($item, 'private', 0);
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 {
$owner_user = $status_user;
}