don't fool around with adding /followers to addressing
Ted Unangst tedu@tedunangst.com
Fri, 25 Sep 2020 18:49:47 -0400
1 files changed,
2 insertions(+),
6 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -1057,11 +1057,7 @@ j := junk.New()
j["id"] = user.URL + "/" + h.What + "/" + shortxid(h.XID) j["actor"] = user.URL j["published"] = dt - if h.Public { - j["to"] = []string{h.Audience[0], user.URL + "/followers"} - } else { - j["to"] = h.Audience[0] - } + j["to"] = h.Audience[0] if len(h.Audience) > 1 { j["cc"] = h.Audience[1:] }@@ -1677,7 +1673,7 @@ j["@context"] = itiswhatitis
j["id"] = fmt.Sprintf("%s/upme/%s/%d", user.URL, user.Name, time.Now().Unix()) j["actor"] = user.URL j["published"] = dt - j["to"] = []string{thewholeworld, user.URL + "/followers"} + j["to"] = thewholeworld j["type"] = "Update" j["object"] = junkuser(user)