From ab6b9b9a4f0538042ac477d3e7de2ba3b0cfc35b Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sat, 31 Aug 2024 00:52:10 +0200 Subject: [PATCH] Add port to url of UploadArticleImage() --- cmd/frontend/articles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frontend/articles.go b/cmd/frontend/articles.go index fd6bef0..8e6263d 100644 --- a/cmd/frontend/articles.go +++ b/cmd/frontend/articles.go @@ -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) }