]> git.mxchange.org Git - friendica.git/commitdiff
We mustn't reshare a feed item (only DFRN and Diaspora)
authorMichael <heluecht@pirati.ca>
Sun, 13 May 2018 18:31:01 +0000 (18:31 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 13 May 2018 18:31:01 +0000 (18:31 +0000)
src/Protocol/Diaspora.php

index e8cfbf511352f8552256019a4b36cad46150fe5d..e8fdd99c5bc752051ec466d57ed889200813349b 100644 (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;