summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file/assets/not-an-image.pngbin0 -> 4711 bytes
-rw-r--r--src/file/server.ts2
2 files changed, 1 insertions, 1 deletions
diff --git a/src/file/assets/not-an-image.png b/src/file/assets/not-an-image.png
new file mode 100644
index 0000000000..bf98b293f7
--- /dev/null
+++ b/src/file/assets/not-an-image.png
Binary files differ
diff --git a/src/file/server.ts b/src/file/server.ts
index 2007667a83..449fa2d740 100644
--- a/src/file/server.ts
+++ b/src/file/server.ts
@@ -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);