seems we may need to add updated field

This commit is contained in:
Ted Unangst 2022-05-27 13:43:48 -04:00
parent 8a635bd682
commit 0395c750e2
1 changed files with 4 additions and 4 deletions

View File

@ -1140,10 +1140,6 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
fallthrough fallthrough
case "honk": case "honk":
j["type"] = "Create" j["type"] = "Create"
if h.What == "update" {
j["type"] = "Update"
}
jo = junk.New() jo = junk.New()
jo["id"] = h.XID jo["id"] = h.XID
jo["type"] = "Note" jo["type"] = "Note"
@ -1152,6 +1148,10 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
} else if h.What == "wonk" { } else if h.What == "wonk" {
jo["type"] = "GuessWord" jo["type"] = "GuessWord"
} }
if h.What == "update" {
j["type"] = "Update"
jo["updated"] = dt
}
jo["published"] = dt jo["published"] = dt
jo["url"] = h.XID jo["url"] = h.XID
jo["attributedTo"] = user.URL jo["attributedTo"] = user.URL