mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
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
14
boot.php
14
boot.php
|
@ -527,8 +527,20 @@ function check_config(&$a) {
|
|||
$plugins = get_config('system','addon');
|
||||
$plugins_arr = array();
|
||||
|
||||
if($plugins)
|
||||
if($plugins) {
|
||||
$plugins_arr = explode(',',str_replace(' ', '',$plugins));
|
||||
if(get_config('system','strict_privacy')) {
|
||||
unset($a->config['system']['huburl']);
|
||||
for($x = 0; $x < count($plugins_arr); $x ++) {
|
||||
if( $plugins_arr[$x] === 'facebook'
|
||||
|| $plugins_arr[$x] === 'twitter'
|
||||
|| $plugins_arr[$x] === 'statusnet') {
|
||||
unset($plugins_arr[$x]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$a->plugins = $plugins_arr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue