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
|
@ -192,6 +192,11 @@ function salmon_post(&$a) {
|
|||
// NOTREACHED
|
||||
}
|
||||
|
||||
// Check if we're allowed to talk to insecure networks
|
||||
|
||||
if(get_config('system','strict_privacy'))
|
||||
salmon_return(400);
|
||||
|
||||
require_once('include/items.php');
|
||||
|
||||
// Placeholder for hub discovery. We shouldn't find any hubs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue