community forums cleanup

This commit is contained in:
friendica 2011-11-19 13:45:20 -08:00
parent 44dcef2948
commit aaedac8f57

View file

@ -2040,7 +2040,7 @@ function local_delivery($importer,$data) {
// was the top-level post for this reply written by somebody on this site? // was the top-level post for this reply written by somebody on this site?
// Specifically, the recipient? // Specifically, the recipient?
//dbg(1);
$r = q("select `item`.`id`, `item`.`uri`, `item`.`tag`, $r = q("select `item`.`id`, `item`.`uri`, `item`.`tag`,
`contact`.`name`, `contact`.`url`, `contact`.`thumb` from `item` `contact`.`name`, `contact`.`url`, `contact`.`thumb` from `item`
LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
@ -2052,7 +2052,7 @@ function local_delivery($importer,$data) {
dbesc($parent_uri), dbesc($parent_uri),
intval($importer['importer_uid']) intval($importer['importer_uid'])
); );
//dbg(0);
if($r && count($r)) { if($r && count($r)) {
logger('local_delivery: received remote comment'); 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. // remote reply to our post. Import and then notify everybody else.
$datarray = get_atom_elements($feed,$item); $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)) { // 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'] ); // 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. // they won't know what to do so don't report an error. Just quietly die.