all repos — honk @ d6daa72f7efbe1db9877858b0518dec026f5d5e5

my fork of honk

reduce scope a bit
Ted Unangst tedu@tedunangst.com
Thu, 30 Apr 2020 11:06:26 -0400
commit

d6daa72f7efbe1db9877858b0518dec026f5d5e5

parent

38d8fbec31656d5fb2776398cabafc4872f4171b

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

jump to
M activity.goactivity.go

@@ -161,11 +161,9 @@ func savedonk(url string, name, desc, media string, localize bool) *Donk {

if url == "" { return nil } - donk := finddonk(url) - if donk != nil { + if donk := finddonk(url); donk != nil { return donk } - donk = new(Donk) log.Printf("saving donk: %s", url) xid := xfiltrate() data := []byte{}

@@ -217,6 +215,7 @@ if err != nil {

log.Printf("error saving file %s: %s", url, err) return nil } + donk := new(Donk) donk.FileID = fileid donk.XID = xid return donk