summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-25 11:00:01 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-25 11:00:01 +1100
commita11686cfc6aa5247bf9f2d9d022964974679d269 (patch)
tree72c13cb20515b05a01c57fc22a978cee93a63c34 /src/api
parentMove message auto mod to the api route instead of a @beforeinsert/update method (diff)
downloadserver-a11686cfc6aa5247bf9f2d9d022964974679d269.tar.xz
Fix fix for twitter embeds from yesterday
Diffstat (limited to 'src/api')
-rw-r--r--src/api/util/utility/EmbedHandlers.ts2
1 files changed, 1 insertions, 1 deletions
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<Embed | Embed
 			// },
 		};
 
-		if (media.length > 0) {
+		if (media && media.length > 0) {
 			embed.image = {
 				width: media[0].width,
 				height: media[0].height,