diff options
author | Friendika <info@friendika.com> | 2011-06-06 16:26:11 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-06 16:26:11 -0700 |
commit | c0094aa4f865defe8be63963b32f69d05e258f48 (patch) | |
tree | ea8938f418f5776fb32fb927069d982393da83e3 /include | |
parent | ccf4e3eee5f01caad487cc42607c6cde710c4f5d (diff) | |
download | volse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.tar.gz volse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.tar.bz2 volse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.zip |
strict privacy mode (Friendika-Z) - refuse to talk to networks with privacy issues
Diffstat (limited to 'include')
-rw-r--r-- | include/notifier.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/notifier.php b/include/notifier.php index db2542849..98e38fb11 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -27,6 +27,8 @@ function notifier_run($argv, $argc){ $a->set_baseurl(get_config('system','url')); + $prv = get_config('system','strict_privacy'); + logger('notifier: invoked: ' . print_r($argv,true)); $cmd = $argv[1]; @@ -329,6 +331,10 @@ function notifier_run($argv, $argc){ } break; case 'stat': + + if($prv) + break; + if($followup && $contact['notify']) { logger('notifier: slapdelivery: ' . $contact['name']); $deliver_status = slapper($owner,$contact['notify'],$slap); @@ -373,7 +379,7 @@ function notifier_run($argv, $argc){ } break; case 'mail': - + // WARNING: does not currently convert to RFC2047 header encodings, etc. $addr = $contact['addr']; @@ -459,7 +465,7 @@ function notifier_run($argv, $argc){ if($slap && count($url_recipients) && $followup && $notify_hub && (! $expire)) { foreach($url_recipients as $url) { - if($url) { + if($url && (! $prv)) { logger('notifier: urldelivery: ' . $url); $deliver_status = slapper($owner,$url,$slap); // TODO: redeliver/queue these items on failure, though there is no contact record |