mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 06:08:12 +09:00
Fix bug
This commit is contained in:
parent
c8ee1b36c9
commit
2237544b53
@ -36,8 +36,8 @@ async function save(path: string, name: string, type: string, hash: string, size
|
||||
|
||||
if (config.drive && config.drive.storage == 'minio') {
|
||||
const minio = new Minio.Client(config.drive.config);
|
||||
const key = `${config.drive.prefix}/${uuid.v4()}/${name}`;
|
||||
const thumbnailKey = `${config.drive.prefix}/${uuid.v4()}/${name}.thumbnail.jpg`;
|
||||
const key = `${config.drive.prefix}/${uuid.v4()}/${encodeURIComponent(name)}`;
|
||||
const thumbnailKey = `${config.drive.prefix}/${uuid.v4()}/${encodeURIComponent(name)}.thumbnail.jpg`;
|
||||
|
||||
const baseUrl = config.drive.baseUrl
|
||||
|| `${ config.drive.config.useSSL ? 'https' : 'http' }://${ config.drive.config.endPoint }${ config.drive.config.port ? `:${config.drive.config.port}` : '' }/${ config.drive.bucket }`;
|
||||
|
Loading…
Reference in New Issue
Block a user