Commit 1b701775 authored by Zot's avatar Zot Committed by Mario

nodeinfo reporting incorrect register policy

parent 6d429a14
......@@ -44,7 +44,7 @@ function nodeinfo_content(&$a) {
'software' => array('name' => 'redmatrix','version' => Zotlabs\Lib\System::get_project_version()),
'protocols' => array('inbound' => array('redmatrix'), 'outbound' => array('redmatrix')),
'services' => array(),
'openRegistrations' => ((get_config('system','register_policy') === REGISTER_OPEN) ? true : false),
'openRegistrations' => ((get_config('system','register_policy') == REGISTER_OPEN) ? true : false),
'usage' => array(
'users' => array(
'total' => intval(get_config('system','channels_total_stat')),
......@@ -118,7 +118,7 @@ function nodeinfo_content(&$a) {
'software' => array('name' => strtolower(Zotlabs\Lib\System::get_platform_name()),'version' => Zotlabs\Lib\System::get_project_version()),
'protocols' => [ 'zot' ],
'services' => array(),
'openRegistrations' => ((get_config('system','register_policy') === REGISTER_OPEN) ? true : false),
'openRegistrations' => ((get_config('system','register_policy') == REGISTER_OPEN) ? true : false),
'usage' => array(
'users' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment