diff options
author | friendica <info@friendica.com> | 2015-04-29 21:49:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-04-29 21:49:43 -0700 |
commit | c4221f32738dac51f691d5be1bebd2b50318521e (patch) | |
tree | e353242b42ca2942d7fe6d29888568c8bfe821ee /include/notifier.php | |
parent | 6679734135fb04f4a7beccb81663bf1e9574f062 (diff) | |
parent | 2376d2140ab6eeb8a44d7582a52978520844e229 (diff) | |
download | volse-hubzilla-c4221f32738dac51f691d5be1bebd2b50318521e.tar.gz volse-hubzilla-c4221f32738dac51f691d5be1bebd2b50318521e.tar.bz2 volse-hubzilla-c4221f32738dac51f691d5be1bebd2b50318521e.zip |
Merge branch 'master' into tres
Conflicts:
include/notifier.php
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/include/notifier.php b/include/notifier.php index 4ea1ffe35..4833e980c 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -350,6 +350,11 @@ function notifier_run($argv, $argc){ return; } + if(strpos($target_item['postopts'],'nodeliver') !== false) { + logger('notifier: target item is undeliverable', LOGGER_DEBUG); + return; + } + $s = q("select * from channel where channel_id = %d limit 1", intval($target_item['uid']) ); @@ -374,6 +379,12 @@ function notifier_run($argv, $argc){ if(! $r) return; + + if(strpos($r[0]['postopts'],'nodeliver') !== false) { + logger('notifier: target item is undeliverable', LOGGER_DEBUG); + return; + } + xchan_query($r); $r = fetch_post_tags($r); @@ -585,16 +596,13 @@ function notifier_run($argv, $argc){ foreach($dhubs as $hub) { - if(defined('DIASPORA_RELIABILITY_EMULATION')) { - $cointoss = mt_rand(0,2); - if($cointoss == 2) { + if($hub['hubloc_network'] === 'diaspora' || $hub['hubloc_network'] === 'friendica-over-diaspora') { + if(! get_config('system','diaspora_enabled')) continue; - } - } + // allow this to be set per message - if($hub['hubloc_network'] === 'diaspora' || $hub['hubloc_network'] === 'friendica-over-diaspora') { - if(! get_config('system','diaspora_enabled')) + if(strpos($target_item['postopts'],'nodspr') !== false) continue; require_once('include/diaspora.php'); |