]> git.mxchange.org Git - friendica.git/commitdiff
community forums cleanup
authorfriendica <info@friendica.com>
Sat, 19 Nov 2011 21:45:20 +0000 (13:45 -0800)
committerfriendica <info@friendica.com>
Sat, 19 Nov 2011 21:45:20 +0000 (13:45 -0800)
include/items.php

index 8ea43efeb281801230341433d6299e2601f8b67c..4e56176277ed1e8297d82edb2a31e7b39bf9a20e 100644 (file)
@@ -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.