I may be stupid

This commit is contained in:
Ashley Graves 2024-10-10 16:16:23 +02:00
parent f80cc5da82
commit 67bc03433e

View file

@ -98,7 +98,7 @@ const blacklist = [
var credentials = JSON.parse(readFileSync("credentials.json")); var credentials = JSON.parse(readFileSync("credentials.json"));
function proxy(url) { function proxy(url) {
// if (!process.env.IMGPROXY_HOST) if (!process.env.IMGPROXY_HOST)
return url; return url;
url = generateImageUrl({ url = generateImageUrl({
@ -161,7 +161,7 @@ module.exports = {
.setTitle(`Post #${post.id}`) .setTitle(`Post #${post.id}`)
.setURL(post.postView) .setURL(post.postView)
.setDescription(description) .setDescription(description)
.setImage(proxy(post.fileUrl)) .setImage(post.fileUrl)
.setFooter({ .setFooter({
text: footerText, text: footerText,
iconURL: proxy(`https://${post.booru.domain}/favicon.ico`), iconURL: proxy(`https://${post.booru.domain}/favicon.ico`),