From 81edb739dda0db3368349a4ef809cbc1c7bdc2a0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 8 Feb 2020 12:19:08 -0500 Subject: [PATCH] Fix mention links by making them absolute, not relative. --- postrender.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postrender.go b/postrender.go index 1b25598..2f03f85 100644 --- a/postrender.go +++ b/postrender.go @@ -87,7 +87,7 @@ func applyMarkdownSpecial(data []byte, skipNoFollow bool, baseURL string, cfg *c tagPrefix = "/read/t/" } md = []byte(hashtagReg.ReplaceAll(md, []byte("#$1"))) - handlePrefix := "/mention:" + handlePrefix := cfg.App.Host + "/mention:" md = []byte(mentionReg.ReplaceAll(md, []byte("$0"))) } // Strip out bad HTML