aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-15 03:26:37 -0700
committerFriendika <info@friendika.com>2011-10-15 03:26:37 -0700
commit5dcc10a5d9d2be79070716fbcaf5c054f7ed9efa (patch)
tree24fe6816289c5334c1e5c9ee895fc0bd1aff530e /include/notifier.php
parentaf6ab381000346f487d1b5b07623510640dd7ee5 (diff)
downloadvolse-hubzilla-5dcc10a5d9d2be79070716fbcaf5c054f7ed9efa.tar.gz
volse-hubzilla-5dcc10a5d9d2be79070716fbcaf5c054f7ed9efa.tar.bz2
volse-hubzilla-5dcc10a5d9d2be79070716fbcaf5c054f7ed9efa.zip
working on long-term solution to relay issue
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/notifier.php b/include/notifier.php
index bbddee109..18ad07012 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -142,7 +142,7 @@ function notifier_run($argv, $argc){
$item['deleted'] = 1;
}
- if((count($items) == 1) && ($items[0]['uri'] === $items[0]['parent-uri'])) {
+ if((count($items) == 1) && ($items[0]['id'] === $target_item['id']) && ($items[0]['uri'] === $items[0]['parent-uri'])) {
logger('notifier: top level post');
$top_level = true;
}
@@ -205,13 +205,20 @@ function notifier_run($argv, $argc){
/**
*
- * Be VERY CAREFUL if you make any changes to the following line. Seemingly innocuous changes
+ * Be VERY CAREFUL if you make any changes to the following lines. Seemingly innocuous changes
* have been known to cause runaway conditions which affected several servers, along with
* permissions issues.
*
*/
+ $relay_to_owner = false;
+
if((! $top_level) && ($parent['wall'] == 0) && (! $expire) && (stristr($target_item['uri'],$localhost))) {
+ $relay_to_owner = true;
+ }
+
+
+ if($relay_to_owner) {
logger('notifier: followup', LOGGER_DEBUG);
// local followup to remote post
$followup = true;