From 693c7fe6e272be1e00d1a2bfdb17423fb3df9a75 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 29 Oct 2019 19:50:45 -0400 Subject: [PATCH] include context in read activities --- activity.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activity.go b/activity.go index 4935a95..b08d217 100644 --- a/activity.go +++ b/activity.go @@ -1123,12 +1123,18 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { 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 }