strict privacy mode (Friendika-Z) - refuse to talk to networks with privacy issues

This commit is contained in:
Friendika 2011-06-06 16:26:11 -07:00
commit c0094aa4f8
5 changed files with 35 additions and 9 deletions

View file

@ -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