Wrap last remaining system.maximagesize config retrieval in Strings::getBytesFromShorthand call
- Address https://github.com/friendica/friendica/issues/13023#issuecomment-1520073381
This commit is contained in:
parent
9e13ef4021
commit
6d3a4ea2b3
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ use Friendica\Module\Register;
|
|||
use Friendica\Object\Api\Mastodon\InstanceV2 as InstanceEntity;
|
||||
use Friendica\Util\Images;
|
||||
use Friendica\Util\Profiler;
|
||||
use Friendica\Util\Strings;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
|
@ -112,7 +113,7 @@ class InstanceV2 extends BaseApi
|
|||
$this->config->get('config', 'max_import_size')
|
||||
));
|
||||
|
||||
$image_size_limit = $this->config->get('system', 'maximagesize');
|
||||
$image_size_limit = Strings::getBytesFromShorthand($this->config->get('system', 'maximagesize'));
|
||||
|
||||
return new InstanceEntity\Configuration(
|
||||
$statuses_config,
|
||||
|
|
Loading…
Reference in a new issue