From: Michael Date: Mon, 17 Apr 2017 14:38:13 +0000 (+0000) Subject: API: The "friendica-owner" has only to be different from the user on starting posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1681d186937f8b680700df14d300858439723a10;p=friendica.git API: The "friendica-owner" has only to be different from the user on starting posts --- diff --git a/include/api.php b/include/api.php index 75f8ab069a..0918690264 100644 --- a/include/api.php +++ b/include/api.php @@ -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)); }