Merge pull request #6086 from friendica/fabrixxm-patch-1
Fix Friendica node info json
This commit is contained in:
commit
dd35cd0701
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue