Fix large media uploading (#1800)

This commit is contained in:
kyori19 2020-05-21 21:50:19 +09:00 committed by GitHub
parent 0926cbeda6
commit e6b7d2ff9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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