sometimes the honk is inside the bonk!
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 00:50:41 -0400
1 files changed,
10 insertions(+),
5 deletions(-)
jump to
M
activity.go
→
activity.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":