Passthrough query parameters on /stack

This commit is contained in:
video-prize-ranch 2022-10-05 22:24:28 -04:00
parent 740ae0d925
commit b6adca7627
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ func handleMedia(c *fiber.Ctx, url string) error {
url = strings.ReplaceAll(url, ".jpeg", ".webp")
}
if strings.HasPrefix(c.Path(), "/stack") {
url = url + "?" + strings.Split(c.OriginalURL(), "?")[1]
}
optionsHash := ""
if utils.Config.ImageCache {
hasher := sha256.New()