]> git.mxchange.org Git - friendica.git/commitdiff
API: The "friendica-owner" has only to be different from the user on starting posts
authorMichael <heluecht@pirati.ca>
Mon, 17 Apr 2017 14:38:13 +0000 (14:38 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Apr 2017 14:38:13 +0000 (14:38 +0000)
include/api.php

index 75f8ab069a83b1d4f8286d0183f1017d533c3ee2..0918690264e567bd5d7b159fbc0b8be694892c76 100644 (file)
@@ -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));
        }