aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-06 20:16:40 -0700
committerFriendika <info@friendika.com>2011-07-06 20:16:40 -0700
commit3f258300766543d6fd3203265aa5c5355886e550 (patch)
tree7ad99336c30d53f3160fc83fad15b7bc3958f610 /mod/follow.php
parent474156b15ce8cc00b3c594b4668f2a658c283522 (diff)
downloadvolse-hubzilla-3f258300766543d6fd3203265aa5c5355886e550.tar.gz
volse-hubzilla-3f258300766543d6fd3203265aa5c5355886e550.tar.bz2
volse-hubzilla-3f258300766543d6fd3203265aa5c5355886e550.zip
more friendika-z
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php
index a354b3457..830399ff5 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -34,6 +34,13 @@ function follow_post(&$a) {
// NOTREACHED
}
+ else {
+ if(get_config('system','dfrn_only')) {
+ notice( t('This site is not configured to allow communications with other networks.') . EOL);
+ notice( t('No compatible communication protocols or feeds were discovered.') . EOL);
+ goaway($_SESSION['return_url']);
+ }
+ }
// do we have enough information?
@@ -50,6 +57,10 @@ function follow_post(&$a) {
goaway($_SESSION['return_url']);
}
+ if($ret['network'] === NETWORK_OSTATUS && get_config('system','ostatus_disabled')) {
+ notice( t('Communication options with this network have been restricted.') . EOL);
+ $ret['notify'] = '';
+ }
if(! $ret['notify']) {
notice( t('Limited profile. This person will be unable to receive direct/personal notifications from you.') . EOL);