fix: remove ?url for image proxy

This commit is contained in:
httpjamesm
2023-02-02 19:15:55 -05:00
parent 7b80c55dd2
commit 15b843d46b
3 changed files with 3 additions and 14 deletions

View File

@ -25,7 +25,7 @@ func ReplaceImgTags(inHtml string) string {
authToken, _ := generateImageProxyAuth(src)
// replace the img tag with a proxied url
inHtml = strings.Replace(inHtml, imgTag, fmt.Sprintf(`<img src="%s/proxy?url=%s&auth=%s">`, os.Getenv("APP_URL"), src, authToken), 1)
inHtml = strings.Replace(inHtml, imgTag, fmt.Sprintf(`<img src="%s/proxy?auth=%s">`, os.Getenv("APP_URL"), authToken), 1)
}
return inHtml