Fix PHP-CS
This commit is contained in:
parent
66db55f0cd
commit
2edb631b1f
|
@ -24,6 +24,7 @@ namespace Friendica\Module\Api\GNUSocial\GNUSocial;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Module\BaseApi;
|
use Friendica\Module\BaseApi;
|
||||||
|
use Friendica\Module\Register;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API endpoint: /api/gnusocial/version, /api/statusnet/version
|
* API endpoint: /api/gnusocial/version, /api/statusnet/version
|
||||||
|
@ -45,7 +46,7 @@ class Config extends BaseApi
|
||||||
'broughtby' => '',
|
'broughtby' => '',
|
||||||
'broughtbyurl' => '',
|
'broughtbyurl' => '',
|
||||||
'timezone' => DI::config()->get('system', 'default_timezone'),
|
'timezone' => DI::config()->get('system', 'default_timezone'),
|
||||||
'closed' => (bool)(DI::config()->get('config', 'register_policy') == \Friendica\Module\Register::CLOSED),
|
'closed' => (DI::config()->get('config', 'register_policy') == Register::CLOSED),
|
||||||
'inviteonly' => (bool)DI::config()->get('system', 'invitation_only'),
|
'inviteonly' => (bool)DI::config()->get('system', 'invitation_only'),
|
||||||
'private' => (bool)DI::config()->get('system', 'block_public'),
|
'private' => (bool)DI::config()->get('system', 'block_public'),
|
||||||
'textlimit' => (string) DI::config()->get('config', 'api_import_size', DI::config()->get('config', 'max_import_size')),
|
'textlimit' => (string) DI::config()->get('config', 'api_import_size', DI::config()->get('config', 'max_import_size')),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user