technically, should undo read instead of sending ignore. not using ignore activity yet
Ted Unangst tedu@tedunangst.com
Sun, 22 Sep 2019 20:29:10 -0400
1 files changed,
9 insertions(+),
2 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -804,6 +804,7 @@
deliverate(0, user.Name, xid, msg) } +// returns activity, object func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { dt := h.Date.Format(time.RFC3339) var jo junk.Junk@@ -932,6 +933,7 @@ case "unbonk":
b := junk.New() b["id"] = user.URL + "/" + "bonk" + "/" + shortxid(h.XID) b["type"] = "Announce" + b["actor"] = user.URL if h.Convoy != "" { b["context"] = h.Convoy }@@ -945,8 +947,13 @@ case "ack":
j["type"] = "Read" j["object"] = h.XID case "deack": - j["type"] = "Ignore" - j["object"] = h.XID + b := junk.New() + b["id"] = user.URL + "/" + "ack" + "/" + shortxid(h.XID) + b["type"] = "Read" + b["actor"] = user.URL + b["object"] = h.XID + j["type"] = "Undo" + j["object"] = b } return j, jo