]> git.mxchange.org Git - friendica.git/blobdiff - include/feed.php
Bugfix: Feeds weren't imported if a post with the same URI existed.
[friendica.git] / include / feed.php
index dd360a07b58bf46df256c3143e97329435617a1f..f11bb52a1bf4dd3e8153cef2a9971c5250dcc6a0 100644 (file)
@@ -201,8 +201,8 @@ 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` = '%s'",
+                       intval($importer["uid"]), dbesc($item["uri"]), dbesc(NETWORK_FEED));
                if ($r) {
                        logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$r[0]["id"], LOGGER_DEBUG);
                        continue;