From 5552e6d2ebcf1a35eaa696a1c1e13d52d1f376af Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sat, 18 Jan 2025 18:18:03 +0100 Subject: [PATCH] Bug fix --- cmd/backend/docx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/backend/docx.go b/cmd/backend/docx.go index c44ee73..9affbb6 100644 --- a/cmd/backend/docx.go +++ b/cmd/backend/docx.go @@ -52,7 +52,7 @@ func ConvertToMarkdown(c *Config, filename string) ([]byte, error) { return nil, fmt.Errorf("error saving image %v: %v", name, err) } - articleContent = regexp.MustCompile(name).ReplaceAll(articleContent, []byte(c.PicsDir+"/"+newImageName)) + articleContent = regexp.MustCompile(name).ReplaceAll(articleContent, []byte(c.Domain+"/image/serve/"+newImageName)) } return articleContent, nil