forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
1fc9206c6d
commit
ac15c2e71f
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "6.0.0",
|
"version": "6.0.1",
|
||||||
"clientVersion": "1.0.8367",
|
"clientVersion": "1.0.8367",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
|
|
|
@ -48,7 +48,7 @@ async function save(path: string, name: string, type: string, hash: string, size
|
||||||
});
|
});
|
||||||
|
|
||||||
if (thumbnail) {
|
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',
|
'Content-Type': 'image/jpeg',
|
||||||
'Cache-Control': 'max-age=31536000, immutable'
|
'Cache-Control': 'max-age=31536000, immutable'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue