From 67bc03433eb70a6b7bd8e0f25b9d5684e59aa326 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 10 Oct 2024 16:16:23 +0200 Subject: [PATCH] I may be stupid --- src/commands/fun/gelbooru.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index 16cdc34..600398a 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -98,8 +98,8 @@ const blacklist = [ var credentials = JSON.parse(readFileSync("credentials.json")); function proxy(url) { - // if (!process.env.IMGPROXY_HOST) - return url; + if (!process.env.IMGPROXY_HOST) + return url; url = generateImageUrl({ endpoint: process.env.IMGPROXY_HOST, @@ -161,7 +161,7 @@ module.exports = { .setTitle(`Post #${post.id}`) .setURL(post.postView) .setDescription(description) - .setImage(proxy(post.fileUrl)) + .setImage(post.fileUrl) .setFooter({ text: footerText, iconURL: proxy(`https://${post.booru.domain}/favicon.ico`),