From 42a5a98ff79adf540bc1252a54b759e13be2442e Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 23 Aug 2022 04:33:22 -0400 Subject: [PATCH] Switch webp to jpeg as it generates faster now --- src/status.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/status.ts b/src/status.ts index b33e718..046dc58 100644 --- a/src/status.ts +++ b/src/status.ts @@ -192,11 +192,7 @@ export const handleStatus = async ( mosaic response, we'll render it using mosaic */ if (typeof mediaNumber !== 'number' && tweet.media.mosaic) { photo = { - /* Telegram is dumb and doesn't support webp in opengraph embeds */ - url: - userAgent?.indexOf('Telegram') === -1 - ? tweet.media.mosaic.formats.webp - : tweet.media.mosaic.formats.jpeg, + url: tweet.media.mosaic.formats.jpeg, width: tweet.media.mosaic.width, height: tweet.media.mosaic.height, type: 'photo'