mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Update src/Module/Media/Photo/Upload.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
79235b6db1
commit
f9c0d5a14b
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class Upload extends \Friendica\BaseModule
|
|||
$width = $image->getWidth();
|
||||
$height = $image->getHeight();
|
||||
|
||||
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||
$maximagesize = Strings::getBytesFromShorthand($this->config->get('system', 'maximagesize'));
|
||||
|
||||
if ($maximagesize && $filesize > $maximagesize) {
|
||||
// Scale down to multiples of 640 until the maximum size isn't exceeded anymore
|
||||
|
|
Loading…
Reference in a new issue