handle the event case without changing too much
This commit is contained in:
parent
3eabee0676
commit
620729d380
12
activity.go
12
activity.go
|
@ -500,13 +500,15 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error getting creation: %s", err)
|
log.Printf("error getting creation: %s", err)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
xid, _ = obj.GetString("id")
|
|
||||||
}
|
|
||||||
if obj != nil {
|
|
||||||
return xonkxonkfn(obj, originate(xid))
|
|
||||||
}
|
}
|
||||||
what = "honk"
|
what = "honk"
|
||||||
|
if obj != nil {
|
||||||
|
t, _ := obj.GetString("type")
|
||||||
|
switch t {
|
||||||
|
case "Event":
|
||||||
|
what = "event"
|
||||||
|
}
|
||||||
|
}
|
||||||
case "Read":
|
case "Read":
|
||||||
xid, ok = item.GetString("object")
|
xid, ok = item.GetString("object")
|
||||||
if ok {
|
if ok {
|
||||||
|
|
Loading…
Reference in New Issue