use parent_mid
This commit is contained in:
parent
364da7a57e
commit
7b948bdd29
@ -1025,13 +1025,13 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
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),
|
dbesc($parent_mid),
|
||||||
intval($importer['channel_id'])
|
intval($importer['channel_id'])
|
||||||
);
|
);
|
||||||
|
|
||||||
if($x) {
|
if($x) {
|
||||||
$pmid = $x[0]['mid'];
|
$pmid = $x[0]['parent_mid'];
|
||||||
$datarray['parent_mid'] = $pmid;
|
$datarray['parent_mid'] = $pmid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user