diff options
author | Volpeon <git@volpeon.ink> | 2021-10-22 07:35:57 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-22 07:35:57 +0200 |
commit | 8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e (patch) | |
tree | 34f714852d5928ca0feac0cf97d655df670fa15f /src/services | |
parent | Add image dimension check (diff) | |
download | feralbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.tar.gz feralbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.tar.bz2 feralbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.zip |
Exclude crossdressing
Diffstat (limited to 'src/services')
-rw-r--r-- | src/services/jobs.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/jobs.ts b/src/services/jobs.ts index 878593b..5ecae66 100644 --- a/src/services/jobs.ts +++ b/src/services/jobs.ts | |||
@@ -38,7 +38,7 @@ async function handlePost(post: e621.Post) { | |||
38 | const width = dims.width ?? 0; | 38 | const width = dims.width ?? 0; |
39 | const height = dims.height ?? 0; | 39 | const height = dims.height ?? 0; |
40 | 40 | ||
41 | if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { | 41 | if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { |
42 | console.log(`Compressing...`); | 42 | console.log(`Compressing...`); |
43 | 43 | ||
44 | file = await Sharp(file) | 44 | file = await Sharp(file) |