X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=include%2Ffeed.php;h=eb91f7efd465b76dee003bdbe1fbb00f9b4587db;hb=810843763dcde2a004f992dc23c928a45ab8184b;hp=dd360a07b58bf46df256c3143e97329435617a1f;hpb=a3221945d0235d99ae74a86ec96c5b9b7619a1cf;p=friendica.git
diff --git a/include/feed.php b/include/feed.php
index dd360a07b5..eb91f7efd4 100644
--- a/include/feed.php
+++ b/include/feed.php
@@ -120,6 +120,8 @@ function feed_import($xml,$importer,&$contact, &$hub) {
if (!is_object($entries))
return;
+ $entrylist = array();
+
foreach ($entries AS $entry)
$entrylist[] = $entry;
@@ -201,14 +203,14 @@ function feed_import($xml,$importer,&$contact, &$hub) {
//$item["object"] = $xml;
- $r = q("SELECT `id` FROM `item` WHERE `uid` = %d AND `uri` = '%s'",
- intval($importer["uid"]), dbesc($item["uri"]));
+ $r = q("SELECT `id` FROM `item` WHERE `uid` = %d AND `uri` = '%s' AND `network` IN ('%s', '%s')",
+ intval($importer["uid"]), dbesc($item["uri"]), dbesc(NETWORK_FEED), dbesc(NETWORK_DFRN));
if ($r) {
logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$r[0]["id"], LOGGER_DEBUG);
continue;
}
- // To-Do?
+ /// @TODO ?
// Ausland
//