all repos — honk @ a4ef2e745851363c76b09f43e60792f09e843fb9

my fork of honk

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
commit

a4ef2e745851363c76b09f43e60792f09e843fb9

parent

d5bac05420122bd0e2c28ea4a16622a3eb19208a

1 files changed, 9 insertions(+), 2 deletions(-)

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