From ac15c2e71f7037fd251f1d36992cf566f0458a9a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 Aug 2018 08:11:21 +0900 Subject: [PATCH] Fix bug --- package.json | 2 +- src/services/drive/add-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed935cbb3..9d0cb1cc2 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 b8a2a33da..03bb1468b 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' });