Merge pull request #3349 from annando/1704-api-owner

API: The "friendica-owner" has only to be different from the user on starting posts
This commit is contained in:
Hypolite Petovan 2017-04-17 13:00:58 -04:00 committed by GitHub
commit 1955d3d1b8
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa

Näytä tiedosto

@ -726,7 +726,11 @@ use \Friendica\Core\Config;
($item["deny_gid"] != "") OR
$item["private"]);
$owner_user = api_get_user($a, $item["owner-link"]);
if ($item['thr-parent'] == $item['uri']) {
$owner_user = api_get_user($a, $item["owner-link"]);
} else {
$owner_user = $status_user;
}
return (array($status_user, $owner_user));
}