strict privacy mode (Friendika-Z) - refuse to talk to networks with privacy issues
This commit is contained in:
parent
ccf4e3eee5
commit
c0094aa4f8
5 changed files with 35 additions and 9 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue