MediaUploader: fix stupid bug that made all pictures to be resized

This commit is contained in:
Alibek Omarov 2020-05-24 02:42:46 +03:00
parent 566c5b1956
commit 3439a1e16a

View File

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