From 620729d380379dedd1124134106ea59f10dfedce Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 11 Oct 2019 00:17:42 -0400 Subject: [PATCH] handle the event case without changing too much --- activity.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/activity.go b/activity.go index c580693..225ebb2 100644 --- a/activity.go +++ b/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 {