aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-19 13:45:20 -0800
committerfriendica <info@friendica.com>2011-11-19 13:45:20 -0800
commitaaedac8f574278fba89cd11d3d8f1adaeb6b030e (patch)
tree57c71f57f703fe44eb8c447b21c4ca3580d85fc0 /include
parent44dcef29484c1f27f15d3ce1ae63a9d24cd1f5e7 (diff)
downloadvolse-hubzilla-aaedac8f574278fba89cd11d3d8f1adaeb6b030e.tar.gz
volse-hubzilla-aaedac8f574278fba89cd11d3d8f1adaeb6b030e.tar.bz2
volse-hubzilla-aaedac8f574278fba89cd11d3d8f1adaeb6b030e.zip
community forums cleanup
Diffstat (limited to 'include')
-rw-r--r--include/items.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 8ea43efeb..4e5617627 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.