From df996a8b5ed2ac33c26a522d65eca6d6a4abe439 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 19 Oct 2011 21:54:33 -0700 Subject: [PATCH] fix for errant top-level posts from feeds --- include/items.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.