]> git.mxchange.org Git - friendica.git/commitdiff
DFRN: Deletions should work now as well
authorMichael Vogel <icarus@dabo.de>
Sat, 30 Jan 2016 02:17:46 +0000 (03:17 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 30 Jan 2016 02:17:46 +0000 (03:17 +0100)
include/import-dfrn.php

index 20735bd507d79bda93e1280ea53c09e2edc0e94c..b1a1c80e045213154da9af578e762d1586343125 100644 (file)
@@ -521,8 +521,8 @@ class dfrn2 {
                $r = q("SELECT `id` FROM `item` WHERE `uid` = %d AND `uri` = '%s'",
                        intval($importer["uid"]), dbesc($item["uri"]));
                if ($r) {
-                       //logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$r[0]["id"], LOGGER_DEBUG);
-                       //return false;
+                       logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$r[0]["id"], LOGGER_DEBUG);
+                       return false;
                }
 
                // Is it a reply?
@@ -694,7 +694,7 @@ class dfrn2 {
                else
                        $when = datetime_convert('UTC','UTC','now','Y-m-d H:i:s');
 
-               if (!$uri OR !$contact)
+               if (!$uri OR !$contact_id)
                        return false;
 
                $r = q("SELECT `item`.*, `contact`.`self` FROM `item` INNER JOIN `contact` on `item`.`contact-id` = `contact`.`id`