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();
|
$width = $image->getWidth();
|
||||||
$height = $image->getHeight();
|
$height = $image->getHeight();
|
||||||
|
|
||||||
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
$maximagesize = Strings::getBytesFromShorthand($this->config->get('system', 'maximagesize'));
|
||||||
|
|
||||||
if ($maximagesize && $filesize > $maximagesize) {
|
if ($maximagesize && $filesize > $maximagesize) {
|
||||||
// Scale down to multiples of 640 until the maximum size isn't exceeded anymore
|
// Scale down to multiples of 640 until the maximum size isn't exceeded anymore
|
||||||
|
|
Loading…
Reference in a new issue