From aaedac8f574278fba89cd11d3d8f1adaeb6b030e Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 19 Nov 2011 13:45:20 -0800 Subject: [PATCH] community forums cleanup --- include/items.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index 8ea43efeb2..4e56176277 100644 --- a/include/items.php +++ b/include/items.php @@ -2040,7 +2040,7 @@ function local_delivery($importer,$data) { // was the top-level post for this reply written by somebody on this site? // Specifically, the recipient? -//dbg(1); + $r = q("select `item`.`id`, `item`.`uri`, `item`.`tag`, `contact`.`name`, `contact`.`url`, `contact`.`thumb` from `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` @@ -2052,7 +2052,7 @@ function local_delivery($importer,$data) { dbesc($parent_uri), intval($importer['importer_uid']) ); -//dbg(0); + if($r && count($r)) { logger('local_delivery: received remote comment'); @@ -2060,6 +2060,9 @@ function local_delivery($importer,$data) { // remote reply to our post. Import and then notify everybody else. $datarray = get_atom_elements($feed,$item); + + // TODO: make this next part work against both delivery threads of a community post + // if((! link_compare($datarray['author-link'],$importer['url'])) && (! $community)) { // logger('local_delivery: received relay claiming to be from ' . $importer['url'] . ' however comment author url is ' . $datarray['author-link'] ); // they won't know what to do so don't report an error. Just quietly die.