From c84cdf0d2a1b43a0008c7c4ecfc8574c539872cd Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:00:01 +1100 Subject: Fix fix for twitter embeds from yesterday --- src/api/util/utility/EmbedHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index 700f5b55..374d88fd 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -225,7 +225,7 @@ export const EmbedHandlers: { [key: string]: (url: URL) => Promise 0) { + if (media && media.length > 0) { embed.image = { width: media[0].width, height: media[0].height, -- cgit 1.4.1