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 xid, rid, url, content, convoy string
|
||||
var obj map[string]interface{}
|
||||
var ok bool
|
||||
switch what {
|
||||
case "Announce":
|
||||
xid, _ = jsongetstring(item, "object")
|
||||
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":
|
||||
obj, _ = jsongetmap(item, "object")
|
||||
|
|
Loading…
Reference in New Issue