]> git.mxchange.org Git - friendica.git/commitdiff
API: Fix author of repeated items from Diaspora
authorMichael <heluecht@pirati.ca>
Fri, 21 Dec 2018 22:55:36 +0000 (22:55 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 21 Dec 2018 22:55:36 +0000 (22:55 +0000)
include/api.php

index 6ca47c01dd5e28acb93b7fac309a8cb76d9df7d8..77dfb7462ba49cc8331dfcd4ad8f636fc377c3fe 100644 (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;