From 3db9420ec736d136c4dec8c1a2c879c14750b327 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Apr 2019 05:22:31 +0000 Subject: [PATCH] Unify behaviour of friendica-author and friendica-owner --- include/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index aaf34831bb..ef2c05936f 100644 --- a/include/api.php +++ b/include/api.php @@ -2995,7 +2995,7 @@ function api_format_item($item, $type = "json", $status_user = null, $author_use $retweeted_status = $status; $status['user'] = $status['friendica_owner']; try { - $retweeted_status["user"] = api_get_user($a, $retweeted_item["author-id"]); + $retweeted_status['friendica_author'] = $retweeted_status["user"] = api_get_user($a, $retweeted_item["author-id"]); } catch (BadRequestException $e) { // user not found. should be found? /// @todo check if the user should be always found @@ -3008,6 +3008,7 @@ function api_format_item($item, $type = "json", $status_user = null, $author_use $retweeted_status['statusnet_html'] = $rt_converted["html"]; $retweeted_status['friendica_activities'] = api_format_items_activities($retweeted_item, $type); $retweeted_status['created_at'] = api_date($retweeted_item['created']); + $retweeted_status['friendica_owner'] = $retweeted_status['friendica_author']; $status['retweeted_status'] = $retweeted_status; $status['friendica_author'] = $retweeted_status['friendica_author']; }