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 {
|
||||
log.Printf("error getting creation: %s", err)
|
||||
}
|
||||
} else {
|
||||
xid, _ = obj.GetString("id")
|
||||
}
|
||||
if obj != nil {
|
||||
return xonkxonkfn(obj, originate(xid))
|
||||
}
|
||||
what = "honk"
|
||||
if obj != nil {
|
||||
t, _ := obj.GetString("type")
|
||||
switch t {
|
||||
case "Event":
|
||||
what = "event"
|
||||
}
|
||||
}
|
||||
case "Read":
|
||||
xid, ok = item.GetString("object")
|
||||
if ok {
|
||||
|
|
Loading…
Reference in New Issue