try and fix diaspora multiple items queued issue

This commit is contained in:
Friendika
2011-11-06 16:48:13 -08:00
parent c991a1a606
commit 327105a4ea
3 changed files with 38 additions and 7 deletions

View File

@@ -206,7 +206,7 @@ function notifier_run($argv, $argc){
/**
*
* Be VERY CAREFUL if you make any changes to the following lines. Seemingly innocuous changes
* Be VERY CAREFUL if you make any changes to the following several lines. Seemingly innocuous changes
* have been known to cause runaway conditions which affected several servers, along with
* permissions issues.
*
@@ -218,6 +218,17 @@ function notifier_run($argv, $argc){
$relay_to_owner = true;
}
// until the 'origin' flag has been in use for several months
// we will just use it as a fallback test
// later we will be able to use it as the primary test of whether or not to relay.
if(! $target_item['origin'])
$relay_to_owner = false;
if($parent['origin'])
$relay_to_owner = false;
if($relay_to_owner) {
logger('notifier: followup', LOGGER_DEBUG);