Fix large media uploading (#1800)

This commit is contained in:
kyori19 2020-05-21 21:50:19 +09:00 committed by Alibek Omarov
parent e5ab9292ef
commit f69e837cb3

View File

@ -78,8 +78,7 @@ class MediaUploaderImpl(
.fromCallable {
if (shouldResizeMedia(media, imageLimit)) {
downsize(media, imageLimit)
}
media
} else media
}
.switchMap { upload(it, videoLimit, imageLimit) }
.subscribeOn(Schedulers.io())