summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-18 20:17:36 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-18 20:17:36 +1100
commit1a0cbcb1d49f52c39a8405f114b0ebc9a5d95891 (patch)
tree0ba0644b44c424bc30c1603eefa7f106b6533584 /src
parentDon't fetch the emoji owner in identify, as this causes mass-disconnects with... (diff)
parentAdd youtu.be embed handler (#945) (diff)
downloadserver-1a0cbcb1d49f52c39a8405f114b0ebc9a5d95891.tar.xz
Merge branch 'master' of github.com:fosscord/fosscord-server
Diffstat (limited to 'src')
-rw-r--r--src/api/util/utility/EmbedHandlers.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts
index 87215ace..522ff82b 100644
--- a/src/api/util/utility/EmbedHandlers.ts
+++ b/src/api/util/utility/EmbedHandlers.ts
@@ -420,7 +420,9 @@ export const EmbedHandlers: {
 			},
 		};
 	},
-
+	"youtu.be": (url: URL) => {
+		return EmbedHandlers["www.youtube.com"](url);
+	},
 	"youtube.com": (url: URL) => {
 		return EmbedHandlers["www.youtube.com"](url);
 	},