all repos — honk @ dffc34a5c217475a83b4ed5ebf7224c79dcda3cf

my fork of honk

handle the event case without changing too much
Ted Unangst tedu@tedunangst.com
Fri, 11 Oct 2019 00:17:42 -0400
commit

dffc34a5c217475a83b4ed5ebf7224c79dcda3cf

parent

79173b2e8a95fc914ee39913c35324805049ac6e

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M activity.goactivity.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 {