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:
parent
8d2a2ba12e
commit
c84cdf0d2a
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user