]> git.mxchange.org Git - friendica.git/commitdiff
debugging
authorfriendica <info@friendica.com>
Sat, 23 Jun 2012 14:26:45 +0000 (07:26 -0700)
committerfriendica <info@friendica.com>
Sat, 23 Jun 2012 14:26:45 +0000 (07:26 -0700)
include/items.php

index 9f90d66e47d31989f4b782c363ca21adef486f1e..91ed6762cfcc5d475bae4153c15cb26556c78caa 100755 (executable)
@@ -2269,12 +2269,13 @@ function local_delivery($importer,$data) {
                        $r = q("select `item`.`id`, `item`.`uri`, `item`.`tag`, `item`.`forum_mode`,`item`.`origin`,`item`.`wall`, 
                                `contact`.`name`, `contact`.`url`, `contact`.`thumb` from `item` 
                                LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` 
-                               WHERE `item`.`uri` = '%s' AND `item`.`parent-uri` = '%s'
+                               WHERE `item`.`uri` = '%s' AND (`item`.`parent-uri` = '%s' or `item`.`thr-parent` = '%s')
                                AND `item`.`uid` = %d 
                                $sql_extra
                                LIMIT 1",
                                dbesc($parent_uri),
                                dbesc($parent_uri),
+                               dbesc($parent_uri),
                                intval($importer['importer_uid'])
                        );
                        if($r && count($r))