From 1681d186937f8b680700df14d300858439723a10 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Apr 2017 14:38:13 +0000 Subject: [PATCH] API: The "friendica-owner" has only to be different from the user on starting posts --- include/api.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); } -- 2.39.5