aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-18 19:41:09 -0700
committerzotlabs <mike@macgirvin.com>2018-04-18 19:41:09 -0700
commita81011333fc113006fbf49b561915532f6cd2509 (patch)
treec1c8bcfabc4d7f1f703d2847cd22b7bf90b8f446 /include/network.php
parenta2e0706d55ee02cf665f366616ef10ff624b3bcc (diff)
downloadvolse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.tar.gz
volse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.tar.bz2
volse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.zip
follow activitypub by webfinger; requires addon update to all federation protocols
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php
index 897fbccd6..c41d87af0 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1192,9 +1192,10 @@ function discover_by_webbie($webbie, $protocol = '') {
logger('webfinger: ' . print_r($x,true), LOGGER_DATA, LOG_INFO);
$arr = [
- 'address' => $webbie,
- 'protocol' => $protocol,
- 'success' => false,
+ 'address' => $webbie,
+ 'protocol' => $protocol,
+ 'success' => false,
+ 'xchan' => '',
'webfinger' => $x
];
/**
@@ -1207,7 +1208,7 @@ function discover_by_webbie($webbie, $protocol = '') {
*/
call_hooks('discover_channel_webfinger', $arr);
if($arr['success'])
- return true;
+ return $arr['xchan'];
return false;
}