1
0
Fork 0

Merge pull request #13048 from MrPetovan/bug/fatal-errors

Wrap last remaining system.maximagesize config retrieval in Strings::getBytesFromShorthand call
This commit is contained in:
Tobias Diekershoff 2023-04-28 07:13:44 +02:00 committed by GitHub
commit 096b95a247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,