From fb059bfdc320a0760ef3de5e4e21ded198f8ceaf Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 6 Jan 2017 20:20:49 -0800 Subject: more feedutils cleanup --- include/feedutils.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/feedutils.php b/include/feedutils.php index 6d65f9fe8..b28a697fd 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -771,7 +771,6 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) { $rawthread = $item->get_item_tags( NAMESPACE_THREAD,'in-reply-to'); if(isset($rawthread[0]['attribs']['']['ref'])) { $is_reply = true; - $raw_parent_mid = $rawthread[0]['attribs']['']['ref']; $parent_mid = $rawthread[0]['attribs']['']['ref']; } @@ -831,10 +830,8 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) { continue; } - $x = q("select mid from item where ( mid = '%s' || plink = '%s' || llink = '%s' ) and uid = %d limit 1", - dbesc($raw_parent_mid), - dbesc($raw_parent_mid), - dbesc($raw_parent_mid), + $x = q("select mid from item where mid = '%s' and uid = %d limit 1", + dbesc($parent_mid), intval($importer['channel_id']) ); if($x) -- cgit v1.2.3