]> git.mxchange.org Git - friendica.git/commitdiff
API: The wrong user had been shown for repeated posts
authorMichael <heluecht@pirati.ca>
Sun, 11 Nov 2018 19:05:57 +0000 (19:05 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 11 Nov 2018 19:05:57 +0000 (19:05 +0000)
include/api.php

index 5bfb2d65a2fdb7d153038f5acce84fd762c224af..267ba0c067806e4e827fcfa0b6f76f4770f117a8 100644 (file)
@@ -2923,6 +2923,7 @@ function api_format_items($r, $user_info, $filter_user = false, $type = "json")
                        $retweeted_item = api_share_as_retweet($item);
                        if ($retweeted_item !== false) {
                                $retweeted_status = $status;
+                               $status['user'] = $status['friendica_owner'];
                                try {
                                        $retweeted_status["user"] = api_get_user($a, $retweeted_item["author-id"]);
                                } catch (BadRequestException $e) {