From: Friendika Date: Thu, 20 Oct 2011 04:54:33 +0000 (-0700) Subject: fix for errant top-level posts from feeds X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df996a8b5ed2ac33c26a522d65eca6d6a4abe439;p=friendica.git fix for errant top-level posts from feeds --- diff --git a/include/items.php b/include/items.php index 136dee90f6..8dc997b16c 100644 --- a/include/items.php +++ b/include/items.php @@ -1341,7 +1341,10 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) $parent_uri = $rawthread[0]['attribs']['']['ref']; } - if(($is_reply) && is_array($contact) && $pass != 1) { + if(($is_reply) && is_array($contact)) { + + if($pass == 1) + continue; // Have we seen it? If not, import it.