Fix quoted mosaic photos (#471)

This commit is contained in:
dangered wolf 2023-11-07 02:14:12 -05:00
parent a626954c43
commit d298bd3740
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -39,8 +39,8 @@ export const renderPhoto = (
if (photo.type === 'mosaic_photo' && !isOverrideMedia) {
instructions.addHeaders = [
`<meta property="twitter:image" content="${tweet.media?.mosaic?.formats.jpeg}"/>`,
`<meta property="og:image" content="${tweet.media?.mosaic?.formats.jpeg}"/>`
`<meta property="twitter:image" content="${photo.formats.jpeg}"/>`,
`<meta property="og:image" content="${photo.formats.jpeg}"/>`
];
} else {
instructions.addHeaders = [