From 65cd33cb153ccc167567e0e4fbb3bf3856408add Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 28 Jun 2019 16:59:15 -0700 Subject: zot_finger() and Zotlabs\Zot\Finger::run() have different output. Adjusted accordingly. --- include/dir_fns.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/dir_fns.php') diff --git a/include/dir_fns.php b/include/dir_fns.php index 068ab4831..08a9fb653 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -357,11 +357,8 @@ function update_directory_entry($ud) { } $x = \Zotlabs\Zot\Finger::run($ud['ud_addr'], ''); if ($x['success']) { - $j = json_decode($x['body'], true); - if ($j) - $success = true; - - $y = import_xchan($j, 0, $ud); + import_xchan($x, 0, $ud); + $success = true; } if (! $success) { q("update updates set ud_last = '%s' where ud_addr = '%s'", -- cgit v1.2.3