all repos — honk @ 4b04aee41772ae720f9fab220a8b1ef7c893831f

my fork of honk

should be ok and may be useful to save our own images
Ted Unangst tedu@tedunangst.com
Tue, 22 Oct 2019 00:21:21 -0400
commit

4b04aee41772ae720f9fab220a8b1ef7c893831f

parent

778afecc80653b23afadeaa3cc9b9a42c0b8dbb3

1 files changed, 3 insertions(+), 5 deletions(-)

jump to
M fun.gofun.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 ""