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) }