mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-25 15:46:39 +09:00
✌️
This commit is contained in:
parent
bb8fd5b90f
commit
6b0db9b877
BIN
src/file/assets/not-an-image.png
Normal file
BIN
src/file/assets/not-an-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -54,7 +54,7 @@ async function raw(data: Buffer, type: string, download: boolean, res: express.R
|
||||
|
||||
async function thumbnail(data: Buffer, type: string, resize: number, res: express.Response): Promise<any> {
|
||||
if (!/^image\/.*$/.test(type)) {
|
||||
data = fs.readFileSync(`${__dirname}/assets/dummy.png`);
|
||||
data = fs.readFileSync(`${__dirname}/assets/not-an-image.png`);
|
||||
}
|
||||
|
||||
let g = gm(data);
|
||||
|
Loading…
Reference in New Issue
Block a user