diff --git a/src/Module/Api/GNUSocial/GNUSocial/Config.php b/src/Module/Api/GNUSocial/GNUSocial/Config.php index a6f379bcb..3ec6cdbce 100644 --- a/src/Module/Api/GNUSocial/GNUSocial/Config.php +++ b/src/Module/Api/GNUSocial/GNUSocial/Config.php @@ -24,6 +24,7 @@ namespace Friendica\Module\Api\GNUSocial\GNUSocial; use Friendica\App; use Friendica\DI; use Friendica\Module\BaseApi; +use Friendica\Module\Register; /** * API endpoint: /api/gnusocial/version, /api/statusnet/version @@ -34,24 +35,24 @@ class Config extends BaseApi { $config = [ 'site' => [ - 'name' => DI::config()->get('config', 'sitename'), - 'server' => DI::baseUrl()->getHostname(), - 'theme' => DI::config()->get('system', 'theme'), - 'path' => DI::baseUrl()->getUrlPath(), - 'logo' => DI::baseUrl() . '/images/friendica-64.png', - 'fancy' => true, - 'language' => DI::config()->get('system', 'language'), - 'email' => DI::config()->get('config', 'admin_email'), - 'broughtby' => '', - 'broughtbyurl' => '', - 'timezone' => DI::config()->get('system', 'default_timezone'), - 'closed' => (bool)(DI::config()->get('config', 'register_policy') == \Friendica\Module\Register::CLOSED), - 'inviteonly' => (bool)DI::config()->get('system', 'invitation_only'), - 'private' => (bool)DI::config()->get('system', 'block_public'), - 'textlimit' => (string) DI::config()->get('config', 'api_import_size', DI::config()->get('config', 'max_import_size')), - 'sslserver' => null, - 'ssl' => DI::config()->get('system', 'ssl_policy') == App\BaseURL::SSL_POLICY_FULL ? 'always' : '0', - 'friendica' => [ + 'name' => DI::config()->get('config', 'sitename'), + 'server' => DI::baseUrl()->getHostname(), + 'theme' => DI::config()->get('system', 'theme'), + 'path' => DI::baseUrl()->getUrlPath(), + 'logo' => DI::baseUrl() . '/images/friendica-64.png', + 'fancy' => true, + 'language' => DI::config()->get('system', 'language'), + 'email' => DI::config()->get('config', 'admin_email'), + 'broughtby' => '', + 'broughtbyurl' => '', + 'timezone' => DI::config()->get('system', 'default_timezone'), + 'closed' => (DI::config()->get('config', 'register_policy') == Register::CLOSED), + 'inviteonly' => (bool)DI::config()->get('system', 'invitation_only'), + 'private' => (bool)DI::config()->get('system', 'block_public'), + 'textlimit' => (string) DI::config()->get('config', 'api_import_size', DI::config()->get('config', 'max_import_size')), + 'sslserver' => null, + 'ssl' => DI::config()->get('system', 'ssl_policy') == App\BaseURL::SSL_POLICY_FULL ? 'always' : '0', + 'friendica' => [ 'FRIENDICA_PLATFORM' => FRIENDICA_PLATFORM, 'FRIENDICA_VERSION' => FRIENDICA_VERSION, 'DFRN_PROTOCOL_VERSION' => DFRN_PROTOCOL_VERSION,