Add port to url of UploadArticleImage()

This commit is contained in:
Jason Streifling 2024-08-31 00:52:10 +02:00
parent 91ef195a56
commit ab6b9b9a4f

View File

@ -502,7 +502,7 @@ func UploadArticleImage(c *b.Config, s *b.CookieStore) http.HandlerFunc {
return
}
url := fmt.Sprint(c.Domain, "/image/serve/", filename)
url := fmt.Sprint(c.Domain, c.Port, "/image/serve/", filename)
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(url)
}