From 1bd7069515ac2330ad0cdf36b63d0fe55ec20de4 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 22 Oct 2019 00:21:21 -0400 Subject: [PATCH] should be ok and may be useful to save our own images --- fun.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fun.go b/fun.go index 151fc31..1834316 100644 --- a/fun.go +++ b/fun.go @@ -170,11 +170,9 @@ func inlineimgsfor(honk *Honk) func(node *html.Node) string { return func(node *html.Node) string { src := htfilter.GetAttr(node, "src") alt := htfilter.GetAttr(node, "alt") - if !strings.HasPrefix(src, "https://"+serverName+"/") { - d := savedonk(src, "image", alt, "image", true) - if d != nil { - honk.Donks = append(honk.Donks, d) - } + d := savedonk(src, "image", alt, "image", true) + if d != nil { + honk.Donks = append(honk.Donks, d) } log.Printf("inline img with src: %s", src) return ""