MediaUploader: fix stupid bug that made all pictures to be resized
This commit is contained in:
parent
566c5b1956
commit
3439a1e16a
@ -206,7 +206,7 @@ class MediaUploaderImpl(
|
||||
// resize only images
|
||||
if(media.type == QueuedMedia.Type.IMAGE) {
|
||||
// resize when exceed image limit
|
||||
if(media.mediaSize < imageLimit)
|
||||
if(media.mediaSize >= imageLimit)
|
||||
return true
|
||||
|
||||
// don't resize when instance permits any image resolution(Pleroma)
|
||||
|
Loading…
Reference in New Issue
Block a user