1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-01 08:18:51 +09:00
This commit is contained in:
MeiMei 2020-01-19 03:38:22 +09:00 committed by syuilo
parent ab1b0cc840
commit 26b193d39d

View File

@ -98,7 +98,7 @@ export default async function(ctx: Koa.Context) {
}
if (isThumbnail || isWebpublic) {
const [mime, ext] = await detectMine(InternalStorage.resolvePath(key));
const { mime, ext } = await detectType(InternalStorage.resolvePath(key));
const filename = rename(file.name, {
suffix: isThumbnail ? '-thumb' : '-web',
extname: ext ? `.${ext}` : undefined