aboutsummaryrefslogtreecommitdiffstats
path: root/mod/salmon.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-06 16:26:11 -0700
committerFriendika <info@friendika.com>2011-06-06 16:26:11 -0700
commitc0094aa4f865defe8be63963b32f69d05e258f48 (patch)
treeea8938f418f5776fb32fb927069d982393da83e3 /mod/salmon.php
parentccf4e3eee5f01caad487cc42607c6cde710c4f5d (diff)
downloadvolse-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/salmon.php')
-rw-r--r--mod/salmon.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/salmon.php b/mod/salmon.php
index c2f76aa0a..bf33033d8 100644
--- a/mod/salmon.php
+++ b/mod/salmon.php
@@ -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