Commit b8c77bbc authored by Zot's avatar Zot Committed by Mario
Browse files

use parent_mid

parent 1f075d92
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment