diff --git a/package.json b/package.json index ed935cbb34..9d0cb1cc2c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "6.0.0", + "version": "6.0.1", "clientVersion": "1.0.8367", "codename": "nighthike", "main": "./built/index.js", diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index b8a2a33da4..03bb1468bd 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -48,7 +48,7 @@ async function save(path: string, name: string, type: string, hash: string, size }); if (thumbnail) { - await minio.putObject(config.drive.bucket, thumbnailObj, fs.createReadStream(path), size, { + await minio.putObject(config.drive.bucket, thumbnailObj, thumbnail, size, { 'Content-Type': 'image/jpeg', 'Cache-Control': 'max-age=31536000, immutable' });