all repos — honk @ e445336534e0b42be9523e086679175494da3686

my fork of honk

sometimes the honk is inside the bonk!
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 00:50:41 -0400
commit

e445336534e0b42be9523e086679175494da3686

parent

e477f924e055b682f7cb031e1164f630f9cd2a5d

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

jump to
M activity.goactivity.go

@@ -410,13 +410,18 @@ var audience []string

var err error var xid, rid, url, content, convoy string var obj map[string]interface{} + var ok bool switch what { case "Announce": - xid, _ = jsongetstring(item, "object") - log.Printf("getting bonk: %s", xid) - obj, err = GetJunk(xid) - if err != nil { - log.Printf("error regetting: %s", err) + xid, ok = jsongetstring(item, "object") + if ok { + log.Printf("getting bonk: %s", xid) + obj, err = GetJunk(xid) + if err != nil { + log.Printf("error regetting: %s", err) + } + } else { + obj, _ = jsongetmap(item, "object") } what = "bonk" case "Create":