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`),