X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=830399ff5c51ae7903b239ed4fa80a07dcf9c840;hb=ec52010e1662cd37640096b65d60fd26fbe6c172;hp=31cfcfb64c1f20d4faec0b34dfcee986dc14db7e;hpb=e036434b8a2dbd8594c0ac5ac7233f4700e4e475;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index 31cfcfb64c..830399ff5c 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -34,8 +34,12 @@ function follow_post(&$a) { // NOTREACHED } - elseif(get_config('system','strict_privacy')) { - unset($ret['notify']); + 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? @@ -53,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);