add protocol selection to following feeds

This commit is contained in:
zotlabs 2017-08-12 00:59:05 -07:00
parent 86c4743ed9
commit 998bd585bb

View File

@ -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;
}
}