From 71efb0565803018cb1ba362706c763714c596cf7 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 12 Oct 2022 19:36:24 +0000 Subject: fix php warnings --- Zotlabs/Daemon/Gprobe.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Daemon/Gprobe.php') diff --git a/Zotlabs/Daemon/Gprobe.php b/Zotlabs/Daemon/Gprobe.php index 1124ead54..c12ae4631 100644 --- a/Zotlabs/Daemon/Gprobe.php +++ b/Zotlabs/Daemon/Gprobe.php @@ -32,17 +32,20 @@ class Gprobe { } if (!$r) { + + + if ($is_webbie) { $url = Webfinger::zot_url(punify($url)); } if ($url) { $zf = Zotfinger::exec($url, null); + if (is_array($zf) && array_path_exists('signature/signer', $zf) && $zf['signature']['signer'] === $href && intval($zf['signature']['header_valid'])) { + Libzot::import_xchan($zf['data']); + } } - if (is_array($zf) && array_path_exists('signature/signer', $zf) && $zf['signature']['signer'] === $href && intval($zf['signature']['header_valid'])) { - Libzot::import_xchan($zf['data']); - } } return; -- cgit v1.2.3