]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_notify.php
fix profile redirect url in dfrn_poll
[friendica.git] / mod / dfrn_notify.php
index 2cc5a62f3c75f84bb3c4f00b2f9f3aa10ba087f9..cd67df1d7c8da9d1cbeefde0161d19c6d4390edb 100644 (file)
@@ -262,10 +262,13 @@ function dfrn_notify_post(&$a) {
                                        $when = datetime_convert('UTC','UTC','now','Y-m-d H:i:s');
                        }
                        if($deleted) {
-                               $r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
+
+                               $r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d AND `contact-id` = %d LIMIT 1",
                                        dbesc($uri),
-                                       intval($importer['importer_uid'])
+                                       intval($importer['importer_uid']),
+                                       intval($importer['id'])
                                );
+
                                if(count($r)) {
                                        $item = $r[0];