From: Hypolite Petovan Date: Fri, 28 Apr 2023 03:09:33 +0000 (-0400) Subject: Wrap last remaining system.maximagesize config retrieval in Strings::getBytesFromShor... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d3a4ea2b3c378ee353136f3ea45527a4fd05044;p=friendica.git Wrap last remaining system.maximagesize config retrieval in Strings::getBytesFromShorthand call - Address https://github.com/friendica/friendica/issues/13023#issuecomment-1520073381 --- diff --git a/src/Module/Api/Mastodon/InstanceV2.php b/src/Module/Api/Mastodon/InstanceV2.php index e006c8263f..402e0ae93c 100644 --- a/src/Module/Api/Mastodon/InstanceV2.php +++ b/src/Module/Api/Mastodon/InstanceV2.php @@ -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,