aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-06-28 16:59:15 -0700
committerzotlabs <mike@macgirvin.com>2019-06-28 16:59:15 -0700
commit65cd33cb153ccc167567e0e4fbb3bf3856408add (patch)
tree2d5c48ff6b16979c7da838897ad0300d56211f90 /include/dir_fns.php
parent4aa59226d7f11e4d97bb3bff649cc0e2ecbbe5e8 (diff)
downloadvolse-hubzilla-65cd33cb153ccc167567e0e4fbb3bf3856408add.tar.gz
volse-hubzilla-65cd33cb153ccc167567e0e4fbb3bf3856408add.tar.bz2
volse-hubzilla-65cd33cb153ccc167567e0e4fbb3bf3856408add.zip
zot_finger() and Zotlabs\Zot\Finger::run() have different output. Adjusted accordingly.
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php7
1 files changed, 2 insertions, 5 deletions
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'",