diff --git a/pages/frontpage.go b/pages/frontpage.go index b2d97a4..c964a03 100644 --- a/pages/frontpage.go +++ b/pages/frontpage.go @@ -11,7 +11,6 @@ func HandleFrontpage(c *fiber.Ctx) error { c.Set("Content-Security-Policy", "default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'; block-all-mixed-content") return c.Render("frontpage", fiber.Map{ - "proto": c.Protocol(), "domain": c.Hostname(), }) } \ No newline at end of file diff --git a/views/frontpage.hbs b/views/frontpage.hbs index 39a0752..3430550 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -39,18 +39,7 @@
Just replace imgur.com with the domain of this instance! You can setup automatic redirects using Redirector.
- -^https?://(i|).?imgur.com(/.*)?$
{{proto}}://{{domain}}$2
Just replace imgur.com or i.imgur.com with {{domain}}
! You can setup automatic redirects using LibRedirect.