1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 01:31:34 +02:00

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
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

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 = { embed.image = {
width: media[0].width, width: media[0].width,
height: media[0].height, height: media[0].height,