handle the event case without changing too much
Ted Unangst tedu@tedunangst.com
Fri, 11 Oct 2019 00:17:42 -0400
1 files changed,
6 insertions(+),
4 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -500,13 +500,15 @@ obj, err = GetJunkHardMode(xid)
if err != nil { log.Printf("error getting creation: %s", err) } - } else { - xid, _ = obj.GetString("id") } + what = "honk" if obj != nil { - return xonkxonkfn(obj, originate(xid)) + t, _ := obj.GetString("type") + switch t { + case "Event": + what = "event" + } } - what = "honk" case "Read": xid, ok = item.GetString("object") if ok {