about summary refs log tree commit diff
path: root/bskyweb/cmd
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-06 11:05:17 -0800
committerGitHub <noreply@github.com>2024-02-06 11:05:17 -0800
commit856f80fc6df731b1dbe9efa289ad6a4f728d4e0d (patch)
tree815d7ed5b083fe36cca321efa60042d14b22c16e /bskyweb/cmd
parenta9ab13e5a936c4d917b878bd53f4e536fa8c95f8 (diff)
downloadvoidsky-856f80fc6df731b1dbe9efa289ad6a4f728d4e0d.tar.zst
fix some youtube videos not properly loading (#2726)
* add player iframe to bskyweb

* iframe for youtube content

* update tests

* ts error
Diffstat (limited to 'bskyweb/cmd')
-rw-r--r--bskyweb/cmd/bskyweb/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go
index c4a12a2fa..76b7bcc06 100644
--- a/bskyweb/cmd/bskyweb/server.go
+++ b/bskyweb/cmd/bskyweb/server.go
@@ -159,6 +159,7 @@ func serve(cctx *cli.Context) error {
 	e.GET("/security.txt", func(c echo.Context) error {
 		return c.Redirect(http.StatusMovedPermanently, "/.well-known/security.txt")
 	})
+	e.GET("/iframe/youtube.html", echo.WrapHandler(staticHandler))
 	e.GET("/static/*", echo.WrapHandler(http.StripPrefix("/static/", staticHandler)), func(next echo.HandlerFunc) echo.HandlerFunc {
 		return func(c echo.Context) error {
 			path := c.Request().URL.Path