mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Add flag to present large image in discord
This commit is contained in:
parent
aa160c4914
commit
0adafed47c
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ export default async (request, context) => {
|
|||
if (info.i) {
|
||||
if (!info.i.startsWith("http")) info.i = atob(info.i.replace(/=/g,''));
|
||||
content.push(`<meta property="og:image" content="${info.i}"/>`);
|
||||
content.push(`<meta name="twitter:card" content="summary_large_image">`);
|
||||
if (info.iw) content.push(`<meta property="og:image:width" content="${info.iw}"/>`);
|
||||
if (info.ih) content.push(`<meta property="og:image:width" content="${info.ih}"/>`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue