From cdf46c006778bde5281e2cd6f63f940308134b60 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Mon, 22 Feb 2021 00:45:16 +0100 Subject: Use [] instead of () for links. --- parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser.go') diff --git a/parser.go b/parser.go index bf9e837..38802ed 100644 --- a/parser.go +++ b/parser.go @@ -171,13 +171,13 @@ func parseLink(n *html.Node, p *post) { url, _ := url.Parse(urlraw) external := url.Query().Get("u") if external != "" { - p.Content += " (" + external + ")" + p.Content += " [" + external + "]" } else { base := strings.Split(urlraw, "?")[0] if base[0] == '/' { base = "https://www.facebook.com" + base } - p.Content += " (" + base + ")" + p.Content += " [" + base + "]" } } } -- cgit v1.2.3