diff options
author | Chris Chrome <christophercookman@gmail.com> | 2023-01-17 23:47:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 17:47:23 +1100 |
commit | 7b384787f8753a9439f3c92e05c3164dec838633 (patch) | |
tree | 5fa579dce3763bf289cc5791183a373135e1a98c | |
parent | Script to add license preamble to each file. Also, does that. (#935) (diff) | |
download | server-7b384787f8753a9439f3c92e05c3164dec838633.tar.xz |
Add youtu.be embed handler (#945)
-rw-r--r-- | src/api/util/utility/EmbedHandlers.ts | 4 |
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); }, |