include context in read activities
Ted Unangst tedu@tedunangst.com
Tue, 29 Oct 2019 19:50:45 -0400
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.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 }