From 3f258300766543d6fd3203265aa5c5355886e550 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 6 Jul 2011 20:16:40 -0700 Subject: more friendika-z --- mod/follow.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mod/follow.php') 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); -- cgit v1.2.3