reget bonks even when embedded
This commit is contained in:
parent
5e7ed058c1
commit
8fe575dcf3
21
activity.go
21
activity.go
|
@ -469,18 +469,19 @@ 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 {
|
||||||
if !needxonkid(user, xid) {
|
xid, _ = jsongetstring(obj, "id")
|
||||||
return nil
|
|
||||||
}
|
|
||||||
log.Printf("getting bonk: %s", xid)
|
|
||||||
obj, err = GetJunk(xid)
|
|
||||||
if err != nil {
|
|
||||||
log.Printf("error regetting: %s", err)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
obj, _ = jsongetmap(item, "object")
|
xid, _ = jsongetstring(item, "object")
|
||||||
|
}
|
||||||
|
if !needxonkid(user, xid) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
log.Printf("getting bonk: %s", xid)
|
||||||
|
obj, err = GetJunk(xid)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error regetting: %s", err)
|
||||||
}
|
}
|
||||||
what = "bonk"
|
what = "bonk"
|
||||||
case "Create":
|
case "Create":
|
||||||
|
|
Loading…
Reference in New Issue