mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
fix (#5710)
This commit is contained in:
parent
ecb2dc245c
commit
95703f4311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user