summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2023-01-17 23:47:23 -0700
committerGitHub <noreply@github.com>2023-01-18 17:47:23 +1100
commit7b384787f8753a9439f3c92e05c3164dec838633 (patch)
tree5fa579dce3763bf289cc5791183a373135e1a98c
parentScript to add license preamble to each file. Also, does that. (#935) (diff)
downloadserver-7b384787f8753a9439f3c92e05c3164dec838633.tar.xz
Add youtu.be embed handler (#945)
-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);
 	},