reference png fullsize img

pull/2/head
lza_menace 2 years ago
parent 4cbe824b39
commit 7297136ef2

@ -19,7 +19,7 @@ async function postDiscord(_q) {
const url = `${assetsBase}/${_q.contractAddress}/${_q.tokenId.toString()}.json`;
const metadata = await fetch(url)
.then((r) => r.json());
const imageURL = metadata.image.replace('ipfs://', `${assetsBase}/${_q.contractAddress}/`);
const imageURL = metadata.image.replace('ipfs://', `${assetsBase}/${_q.contractAddress}/`) + '.fullsize.png';
const res = await fetch(process.env.DISCORD_WEBHOOK, {
method: 'POST',
headers: {

Loading…
Cancel
Save