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"));
|
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({
|
||||||
endpoint: process.env.IMGPROXY_HOST,
|
endpoint: process.env.IMGPROXY_HOST,
|
||||||
|
@ -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`),
|
||||||
|
|
Loading…
Reference in a new issue