From: Michael Vogel Date: Mon, 22 Dec 2014 06:32:04 +0000 (+0100) Subject: Feeds are never public so the posts can never be duplicated. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41014735f1b71d47556852b15acbd477ef588d53;p=friendica.git Feeds are never public so the posts can never be duplicated. --- diff --git a/include/threads.php b/include/threads.php index f80212fad4..28bf87f4da 100644 --- a/include/threads.php +++ b/include/threads.php @@ -32,7 +32,7 @@ function add_thread($itemid, $onlyshadow = false) { return; // is it an entry from a connector? Only add an entry for natively connected networks - if (!in_array($item["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS, NETWORK_FEED, ""))) + if (!in_array($item["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS, ""))) return; // Only do these checks if the post isn't a wall post @@ -210,9 +210,9 @@ function update_shadow_copy() { logger("start"); - $messages = $db->q(sprintf("SELECT `iid` FROM `thread` WHERE `uid` != 0 AND `network` IN ('', '%s', '%s', '%s', '%s') + $messages = $db->q(sprintf("SELECT `iid` FROM `thread` WHERE `uid` != 0 AND `network` IN ('', '%s', '%s', '%s') AND `visible` AND NOT `deleted` AND NOT `moderated` AND NOT `private` ORDER BY `created`", - NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_FEED, NETWORK_OSTATUS), true); + NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS), true); logger("fetched messages: ".count($messages)); while ($message = $db->qfetch())