mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 13:12:19 +00:00
Fix fix for twitter embeds from yesterday
This commit is contained in:
1 parent
f5b50ed3a8
commit
a11686cfc6
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user