summary refs log tree commit diff
path: root/src
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
commit7152a1c2c1321d23f945fc404bd8adfd00e5fc83 (patch)
treebbaaf3d0e3256a33cdcaeb0c75b4b4d7dbc80b0d /src
parentScript to add license preamble to each file. Also, does that. (#935) (diff)
downloadserver-7152a1c2c1321d23f945fc404bd8adfd00e5fc83.tar.xz
Add youtu.be embed handler (#945)
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);
 	},