From 0395c750e265e785104feaceffecb0d26e7cce41 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 27 May 2022 13:43:48 -0400 Subject: [PATCH] seems we may need to add updated field --- activity.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activity.go b/activity.go index 3f07e21..d84dba8 100644 --- a/activity.go +++ b/activity.go @@ -1140,10 +1140,6 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { fallthrough case "honk": j["type"] = "Create" - if h.What == "update" { - j["type"] = "Update" - } - jo = junk.New() jo["id"] = h.XID jo["type"] = "Note" @@ -1152,6 +1148,10 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { } else if h.What == "wonk" { jo["type"] = "GuessWord" } + if h.What == "update" { + j["type"] = "Update" + jo["updated"] = dt + } jo["published"] = dt jo["url"] = h.XID jo["attributedTo"] = user.URL