Merge pull request #6086 from friendica/fabrixxm-patch-1

Fix Friendica node info json
This commit is contained in:
Hypolite Petovan 2018-11-06 10:48:00 -05:00 committed by GitHub
commit dd35cd0701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1375,7 +1375,12 @@ class PortableContact
}
$info = $data['info'];
if (in_array($data['register_policy'], ['REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'])) {
$register_policy = constant($data['register_policy']);
} else {
Logger::log("Register policy '{$data['register_policy']}' from $server_url is invalid.");
$register_policy = REGISTER_CLOSED; // set a default value
}
$platform = $data['platform'];
}
}