aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-23 07:26:45 -0700
committerfriendica <info@friendica.com>2012-06-23 07:26:45 -0700
commit63141c73d8d87e4f861e914bda01426830824996 (patch)
treef7479d37d484166482d51e2a9e55974c4d3d99cf /include/items.php
parenta132eda2cf8524e98d94088e9130f50163ade8cb (diff)
downloadvolse-hubzilla-63141c73d8d87e4f861e914bda01426830824996.tar.gz
volse-hubzilla-63141c73d8d87e4f861e914bda01426830824996.tar.bz2
volse-hubzilla-63141c73d8d87e4f861e914bda01426830824996.zip
debugging
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 9f90d66e4..91ed6762c 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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))