aboutsummaryrefslogtreecommitdiff
path: root/parser.go
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-22 00:45:16 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-22 00:45:16 +0100
commitcdf46c006778bde5281e2cd6f63f940308134b60 (patch)
tree81d746951fc5b1e3b0e8d20ae5eab28c82228bf6 /parser.go
parent449f35d4fd50cae9b4c1fe4dd4b7003fd4e7b8e6 (diff)
downloadfbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.tar.gz
fbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.tar.bz2
fbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.zip
Use [] instead of () for links.
Diffstat (limited to 'parser.go')
-rw-r--r--parser.go4
1 files changed, 2 insertions, 2 deletions
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 + "]"
}
}
}