diff options
author | friendica <info@friendica.com> | 2014-09-04 01:13:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-04 01:13:01 -0700 |
commit | ca2bf76b06360d6bd3dc386d53c6d7301cd518f3 (patch) | |
tree | f9997ba76aeb1e6ed3d772f54ab7062e3cab711a /include/follow.php | |
parent | 1659e0e7ad5511bb2f1d786b5dd5dd10000eabf7 (diff) | |
download | volse-hubzilla-ca2bf76b06360d6bd3dc386d53c6d7301cd518f3.tar.gz volse-hubzilla-ca2bf76b06360d6bd3dc386d53c6d7301cd518f3.tar.bz2 volse-hubzilla-ca2bf76b06360d6bd3dc386d53c6d7301cd518f3.zip |
allow stuff with Diaspora authors to federate in zot conversations even if the local site has diaspora disabled. This way it won't look like folks are talking to themselves.
Diffstat (limited to 'include/follow.php')
-rw-r--r-- | include/follow.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php index e6c42aad1..058f5d60b 100644 --- a/include/follow.php +++ b/include/follow.php @@ -118,6 +118,12 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) } } else { + if(! ($is_http)) { + if(! intval(get_config('system','diaspora_enabled'))) { + $result['message'] = t('Protocol disabled.'); + return $result; + } + } $my_perms = 0; $their_perms = 0; |