From: Michael Date: Sun, 13 May 2018 18:31:01 +0000 (+0000) Subject: We mustn't reshare a feed item (only DFRN and Diaspora) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57bd073ffd5480d78358db0f6494f63f63ffa5be;p=friendica.git We mustn't reshare a feed item (only DFRN and Diaspora) --- diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index e8cfbf5113..e8fdd99c5b 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -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;