aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-06 20:20:49 -0800
committerzotlabs <mike@macgirvin.com>2017-01-06 20:20:49 -0800
commitfb059bfdc320a0760ef3de5e4e21ded198f8ceaf (patch)
tree0c8cbb9bfaeaeb2ecbed8ad6a8799fcd057ea597
parenta3c45d47e65c0974c07ede6325c6472b64ac6049 (diff)
downloadvolse-hubzilla-fb059bfdc320a0760ef3de5e4e21ded198f8ceaf.tar.gz
volse-hubzilla-fb059bfdc320a0760ef3de5e4e21ded198f8ceaf.tar.bz2
volse-hubzilla-fb059bfdc320a0760ef3de5e4e21ded198f8ceaf.zip
more feedutils cleanup
-rw-r--r--include/feedutils.php7
1 files changed, 2 insertions, 5 deletions
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)