aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Zfinger.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2020-06-14 15:38:44 +0200
committerMario Vavti <mario@mariovavti.com>2020-06-14 15:38:44 +0200
commit8cd66145bdd8bf0f43c2a1774181c974335fc494 (patch)
treefb250095013b023fa475d68d5c3720677a3c28df /Zotlabs/Module/Zfinger.php
parentc8c4513af98a9dd2a6d9331ba4b3ab3af0e95a5f (diff)
downloadvolse-hubzilla-8cd66145bdd8bf0f43c2a1774181c974335fc494.tar.gz
volse-hubzilla-8cd66145bdd8bf0f43c2a1774181c974335fc494.tar.bz2
volse-hubzilla-8cd66145bdd8bf0f43c2a1774181c974335fc494.zip
fix discovery
Diffstat (limited to 'Zotlabs/Module/Zfinger.php')
-rw-r--r--Zotlabs/Module/Zfinger.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Zfinger.php b/Zotlabs/Module/Zfinger.php
index 3a20144a5..0151d458a 100644
--- a/Zotlabs/Module/Zfinger.php
+++ b/Zotlabs/Module/Zfinger.php
@@ -2,6 +2,7 @@
namespace Zotlabs\Module;
use Zotlabs\Web\HTTPSig;
+use Zotlabs\Lib\Libzot;
class Zfinger extends \Zotlabs\Web\Controller {
@@ -10,10 +11,10 @@ class Zfinger extends \Zotlabs\Web\Controller {
require_once('include/zot.php');
require_once('include/crypto.php');
- $x = zotinfo($_REQUEST);
+ $x = Libzot::zotinfo($_REQUEST);
- if($x && $x['guid'] && $x['guid_sig']) {
- $chan_hash = make_xchan_hash($x['guid'],$x['guid_sig']);
+ if($x && $x['id'] && $x['public_key']) {
+ $chan_hash = Libzot::make_xchan_hash($x['id'],$x['public_key']);
if($chan_hash) {
$chan = channelx_by_hash($chan_hash);
}