I may be stupid
This commit is contained in:
parent
f80cc5da82
commit
67bc03433e
1 changed files with 3 additions and 3 deletions
|
@ -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`),
|
||||
|
|
Loading…
Reference in a new issue