Merge pull request #5044 from annando/no-feed-reshare

We mustn't reshare a feed item (only DFRN and Diaspora)
This commit is contained in:
Hypolite Petovan 2018-05-13 18:31:58 -04:00 committed by GitHub
commit f937dabc9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -3515,6 +3515,10 @@ class Diaspora
$ret["root_handle"] = self::handleFromContact($item["contact-id"]);
$ret["root_guid"] = $guid;
return $ret;
} elseif ($complete) {
// We are resharing something that isn't a DFRN or Diaspora post.
// So we have to return "false" on "$complete" to not trigger a reshare.
return false;
}
} elseif (($guid == "") && $complete) {
return false;