aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-19 08:28:42 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-19 08:28:42 +0200
commit92b08f1f07a25976342dc885331ecb1531e256aa (patch)
tree4127afeee7d8a3b710863d9ad022fed2b82a8ebc /include/network.php
parent16dcbc1e674cef1d51dc0e81f91d7055350f9990 (diff)
parenta81011333fc113006fbf49b561915532f6cd2509 (diff)
downloadvolse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.tar.gz
volse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.tar.bz2
volse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.zip
Merge remote-tracking branch 'mike/master' into dev
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;
}