aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/follow.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/follow.php b/include/follow.php
index 130f8b06b..56d8294c5 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -138,6 +138,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
);
if(! $r) {
+
// attempt network auto-discovery
$d = discover_by_webbie($url,$protocol);
@@ -146,11 +147,13 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
// try RSS discovery
- if(get_config('system','feed_contacts')) {
+ $feeds = get_config('system','feed_contacts');
+
+ if(($feeds) && ($protocol === '' || $protocol === 'feed')) {
$d = discover_by_url($url);
}
else {
- $result['message'] = t('Protocol disabled.');
+ $result['message'] = t('Remote channel or protocol unavailable.');
return $result;
}
}