sometimes the honk is inside the bonk!
This commit is contained in:
parent
986ae581fc
commit
99d89bb62c
|
@ -410,14 +410,19 @@ func xonkxonk(item interface{}) *Honk {
|
||||||
var err error
|
var err error
|
||||||
var xid, rid, url, content, convoy string
|
var xid, rid, url, content, convoy string
|
||||||
var obj map[string]interface{}
|
var obj map[string]interface{}
|
||||||
|
var ok bool
|
||||||
switch what {
|
switch what {
|
||||||
case "Announce":
|
case "Announce":
|
||||||
xid, _ = jsongetstring(item, "object")
|
xid, ok = jsongetstring(item, "object")
|
||||||
|
if ok {
|
||||||
log.Printf("getting bonk: %s", xid)
|
log.Printf("getting bonk: %s", xid)
|
||||||
obj, err = GetJunk(xid)
|
obj, err = GetJunk(xid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error regetting: %s", err)
|
log.Printf("error regetting: %s", err)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
obj, _ = jsongetmap(item, "object")
|
||||||
|
}
|
||||||
what = "bonk"
|
what = "bonk"
|
||||||
case "Create":
|
case "Create":
|
||||||
obj, _ = jsongetmap(item, "object")
|
obj, _ = jsongetmap(item, "object")
|
||||||
|
|
Loading…
Reference in New Issue