aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-14 16:06:25 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-15 08:56:06 +0200
commitb8c77bbcfcc5f1f25ff61ac5fc9f284148955221 (patch)
treee50d8494e3d2ced96fa272d7bc710fba9ab95378
parent1f075d92bc4e47ae282f811d10c31cd6f09191a6 (diff)
downloadvolse-hubzilla-b8c77bbcfcc5f1f25ff61ac5fc9f284148955221.tar.gz
volse-hubzilla-b8c77bbcfcc5f1f25ff61ac5fc9f284148955221.tar.bz2
volse-hubzilla-b8c77bbcfcc5f1f25ff61ac5fc9f284148955221.zip
use parent_mid
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 02decca69..5e5056f7c 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -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;
}
}