Skip to content

Commit

Permalink
0.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Feb 28, 2023
1 parent d5f5f40 commit 969d27e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions built/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ function correctFilename(filename, ext) {
if (ext === 'jpg' && filename.endsWith('.jpeg')) {
return filename;
}
if (ext === 'tif' && filename.endsWith('.tiff')) {
return filename;
}
return `${filename}${dotExt}`;
}
function contentDisposition(type, filename) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey-media-proxy",
"version": "0.0.15",
"version": "0.0.16",
"description": "The Media Proxy for Misskey",
"main": "built/index.js",
"packageManager": "[email protected]",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ function correctFilename(filename: string, ext: string | null) {
if (ext === 'jpg' && filename.endsWith('.jpeg')) {
return filename;
}
if (ext === 'tif' && filename.endsWith('.tiff')) {
return filename;
}
return `${filename}${dotExt}`;
}

Expand Down

0 comments on commit 969d27e

Please sign in to comment.