aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 27f189119..b64a98a7f 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1122,6 +1122,17 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
}
}
}
+
+ // the conversation parent might just be the post we are trying to import.
+ // check existence again in case it was just delivered.
+
+ $r = q("SELECT id FROM item WHERE mid = '%s' AND uid = %d LIMIT 1",
+ dbesc($datarray['mid']),
+ intval($importer['channel_id'])
+ );
+ if($r) {
+ continue;
+ }
}
if(! $pmid) {