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 /mod/follow.php | |
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 'mod/follow.php')
-rw-r--r-- | mod/follow.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/follow.php b/mod/follow.php index 9a9f9da7d..31cfcfb64 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -22,10 +22,8 @@ function follow_post(&$a) { // NOTREACHED } - $ret = probe_url($url); - if($ret['network'] === NETWORK_DFRN) { if(strlen($a->path)) $myaddr = bin2hex($a->get_baseurl() . '/profile/' . $a->user['nickname']); @@ -36,6 +34,9 @@ function follow_post(&$a) { // NOTREACHED } + elseif(get_config('system','strict_privacy')) { + unset($ret['notify']); + } // do we have enough information? |