diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-02-22 00:45:16 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-02-22 00:45:16 +0100 |
commit | cdf46c006778bde5281e2cd6f63f940308134b60 (patch) | |
tree | 81d746951fc5b1e3b0e8d20ae5eab28c82228bf6 /parser.go | |
parent | 449f35d4fd50cae9b4c1fe4dd4b7003fd4e7b8e6 (diff) | |
download | fbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.tar.gz fbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.tar.bz2 fbfeed-cdf46c006778bde5281e2cd6f63f940308134b60.zip |
Use [] instead of () for links.
Diffstat (limited to 'parser.go')
-rw-r--r-- | parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 + "]" } } } |