handle the event case without changing too much

This commit is contained in:
Ted Unangst 2019-10-11 00:17:42 -04:00
parent 3eabee0676
commit 620729d380
1 changed files with 7 additions and 5 deletions

View File

@ -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 {