finish updating zot_finger instances

This commit is contained in:
redmatrix
2016-05-21 18:18:33 -07:00
parent ed56b6e67b
commit 1cb311cef9
10 changed files with 29 additions and 44 deletions

View File

@@ -69,9 +69,8 @@ function check_upstream_directory() {
if ($directory) {
$h = parse_url($directory);
if ($h) {
$x = zot_finger('[system]@' . $h['host']);
if ($x['success']) {
$j = json_decode($x['body'], true);
$j = Zotlabs\Zot\Finger::run('[system]@' . $h['host']);
if ($j['success']) {
if (array_key_exists('site', $j) && array_key_exists('directory_mode', $j['site'])) {
if ($j['site']['directory_mode'] === 'normal') {
$isadir = false;