Merge pull request #6301 from annando/api-repeat

API: Fix author of repeated items from Diaspora
This commit is contained in:
Hypolite Petovan 2018-12-21 19:02:53 -05:00 committed by GitHub
commit 5fb7c3aebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4932,6 +4932,7 @@ function api_share_as_retweet(&$item)
}
$reshared_item["body"] = $shared_body;
$reshared_item["author-id"] = Contact::getIdForURL($profile, 0, true);
$reshared_item["author-name"] = $author;
$reshared_item["author-link"] = $profile;
$reshared_item["author-avatar"] = $avatar;