Fix fix for twitter embeds from yesterday

This commit is contained in:
Madeline
2022-10-25 11:00:01 +11:00
parent 8d2a2ba12e
commit c84cdf0d2a
+1 -1
View File
@@ -225,7 +225,7 @@ export const EmbedHandlers: { [key: string]: (url: URL) => Promise<Embed | Embed
// },
};
if (media.length > 0) {
if (media && media.length > 0) {
embed.image = {
width: media[0].width,
height: media[0].height,