Browse Source

API: The wrong user had been shown for repeated posts

tags/2019.01
Michael 1 year ago
parent
commit
34a0e71485
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      include/api.php

+ 1
- 0
include/api.php View 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) {


Loading…
Cancel
Save