$config = DI::config();
$usage = new stdClass();
+ $usage->users = [];
if (!empty($config->get('system', 'nodeinfo'))) {
$usage->users = [
'friendica'
],
],
- 'services' => [],
- 'usage' => [],
+ 'services' => Nodeinfo::getServices(),
+ 'usage' => Nodeinfo::getUsage(),
'openRegistrations' => intval($this->config->get('config', 'register_policy')) !== Register::CLOSED,
'metadata' => [
'nodeName' => $this->config->get('config', 'sitename'),
$nodeinfo['protocols']['outbound'][] = 'gnusocial';
}
- $nodeinfo['usage'] = Nodeinfo::getUsage();
-
- $nodeinfo['services'] = Nodeinfo::getServices();
-
$nodeinfo['metadata']['protocols'] = $nodeinfo['protocols'];
$nodeinfo['metadata']['protocols']['outbound'][] = 'atom1.0';
$nodeinfo['metadata']['protocols']['inbound'][] = 'atom1.0';
'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION,
],
'protocols' => ['dfrn', 'activitypub'],
- 'services' => [],
- 'usage' => [],
+ 'services' => Nodeinfo::getServices(),
+ 'usage' => Nodeinfo::getUsage(),
'openRegistrations' => intval($this->config->get('config', 'register_policy')) !== Register::CLOSED,
'metadata' => [
'nodeName' => $this->config->get('config', 'sitename'),
$nodeinfo['protocols'][] = 'ostatus';
}
- $nodeinfo['usage'] = Nodeinfo::getUsage();
-
- $nodeinfo['services'] = Nodeinfo::getServices();
-
if (Addon::isEnabled('twitter')) {
$nodeinfo['services']['inbound'][] = 'twitter';
}
],
'organization' => Nodeinfo::getOrganization($this->config),
'protocols' => ['dfrn', 'activitypub'],
- 'services' => [],
+ 'services' => Nodeinfo::getServices(),
'openRegistrations' => intval($this->config->get('config', 'register_policy')) !== Register::CLOSED,
- 'usage' => [],
+ 'usage' => Nodeinfo::getUsage(true),
];
if (!empty($this->config->get('system', 'diaspora_enabled'))) {
$nodeinfo['protocols'][] = 'ostatus';
}
- $nodeinfo['usage'] = Nodeinfo::getUsage(true);
-
- $nodeinfo['services'] = Nodeinfo::getServices();
-
if (Addon::isEnabled('twitter')) {
$nodeinfo['services']['inbound'][] = 'twitter';
}