<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
'version' => '1.0',
'software' => [
'name' => 'friendica',
- 'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION,
+ 'version' => App::VERSION . '-' . DB_UPDATE_VERSION,
],
'protocols' => [
'inbound' => [
'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';