use parent_mid

This commit is contained in:
zotlabs
2017-06-15 08:56:06 +02:00
committed by Mario Vavti
parent 1f075d92bc
commit b8c77bbcfc
+2 -2
View File
@@ -1021,13 +1021,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;
}
}