all repos — honk @ e63b3eb6240ef3bcbbb5a5c1f83abb14a1948990

my fork of honk

include context in read activities
Ted Unangst tedu@tedunangst.com
Tue, 29 Oct 2019 19:50:45 -0400
commit

e63b3eb6240ef3bcbbb5a5c1f83abb14a1948990

parent

6fb26595fca326111fe1d6e27378b215fc848181

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -1123,12 +1123,18 @@ j["object"] = h.XID

case "ack": j["type"] = "Read" j["object"] = h.XID + if h.Convoy != "" { + j["context"] = h.Convoy + } case "deack": b := junk.New() b["id"] = user.URL + "/" + "ack" + "/" + shortxid(h.XID) b["type"] = "Read" b["actor"] = user.URL b["object"] = h.XID + if h.Convoy != "" { + b["context"] = h.Convoy + } j["type"] = "Undo" j["object"] = b }