zot_finger() and Zotlabs\Zot\Finger::run() have different output. Adjusted accordingly.

This commit is contained in:
zotlabs 2019-06-28 16:59:15 -07:00
parent 4aa59226d7
commit 65cd33cb15

View File

@ -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'",