aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-14 16:06:25 -0700
committerzotlabs <mike@macgirvin.com>2017-06-14 16:06:25 -0700
commit7b948bdd29e44920e4c1af9bcba26958220daca2 (patch)
tree0db3658b40e8e73e06f7e00655647dc2c2aec265 /include
parent364da7a57e4fea5226c83d2ef9869a084c7c0013 (diff)
downloadvolse-hubzilla-7b948bdd29e44920e4c1af9bcba26958220daca2.tar.gz
volse-hubzilla-7b948bdd29e44920e4c1af9bcba26958220daca2.tar.bz2
volse-hubzilla-7b948bdd29e44920e4c1af9bcba26958220daca2.zip
use parent_mid
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 96e5fdc6b..68af88256 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1025,13 +1025,13 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
}
}
else {
- $x = q("select mid from item where mid = '%s' and uid = %d limit 1",
+ $x = q("select parent_mid from item where mid = '%s' and uid = %d limit 1",
dbesc($parent_mid),
intval($importer['channel_id'])
);
if($x) {
- $pmid = $x[0]['mid'];
+ $pmid = $x[0]['parent_mid'];
$datarray['parent_mid'] = $pmid;
}
}