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 | 7152a1c2c1321d23f945fc404bd8adfd00e5fc83 (patch) | |
tree | bbaaf3d0e3256a33cdcaeb0c75b4b4d7dbc80b0d /src/api/util/utility | |
parent | Script to add license preamble to each file. Also, does that. (#935) (diff) | |
download | server-7152a1c2c1321d23f945fc404bd8adfd00e5fc83.tar.xz |
Add youtu.be embed handler (#945)
Diffstat (limited to 'src/api/util/utility')
-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); }, |