reget bonks even when embedded
This commit is contained in:
parent
5e7ed058c1
commit
8fe575dcf3
|
@ -469,8 +469,12 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
|
||||||
var ok bool
|
var ok bool
|
||||||
switch what {
|
switch what {
|
||||||
case "Announce":
|
case "Announce":
|
||||||
xid, ok = jsongetstring(item, "object")
|
obj, ok = jsongetmap(item, "object")
|
||||||
if ok {
|
if ok {
|
||||||
|
xid, _ = jsongetstring(obj, "id")
|
||||||
|
} else {
|
||||||
|
xid, _ = jsongetstring(item, "object")
|
||||||
|
}
|
||||||
if !needxonkid(user, xid) {
|
if !needxonkid(user, xid) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -479,9 +483,6 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
|
||||||
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