summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-10-22 07:35:57 +0200
committerVolpeon <git@volpeon.ink>2021-10-22 07:35:57 +0200
commit8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e (patch)
tree34f714852d5928ca0feac0cf97d655df670fa15f
parentAdd image dimension check (diff)
downloadferalbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.tar.gz
feralbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.tar.bz2
feralbot-8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e.zip
Exclude crossdressing
-rw-r--r--src/config.ts1
-rw-r--r--src/services/jobs.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts
index ac6fe98..e0bd0e1 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -23,6 +23,7 @@ const mainQuery: GetPostQuery = {
23 "-hyper", 23 "-hyper",
24 "-lips", 24 "-lips",
25 "-dress", 25 "-dress",
26 "-crossdressing",
26 "-mouth_shot", 27 "-mouth_shot",
27 "-animated", 28 "-animated",
28 "-transformation", 29 "-transformation",
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)