don't fool around with adding /followers to addressing

This commit is contained in:
Ted Unangst 2020-09-25 18:49:47 -04:00
parent e1cff81b4c
commit 8f9c838a07
1 changed files with 2 additions and 6 deletions

View File

@ -1057,11 +1057,7 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
j["id"] = user.URL + "/" + h.What + "/" + shortxid(h.XID) j["id"] = user.URL + "/" + h.What + "/" + shortxid(h.XID)
j["actor"] = user.URL j["actor"] = user.URL
j["published"] = dt 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 { if len(h.Audience) > 1 {
j["cc"] = h.Audience[1:] j["cc"] = h.Audience[1:]
} }
@ -1677,7 +1673,7 @@ func updateMe(username string) {
j["id"] = fmt.Sprintf("%s/upme/%s/%d", user.URL, user.Name, time.Now().Unix()) j["id"] = fmt.Sprintf("%s/upme/%s/%d", user.URL, user.Name, time.Now().Unix())
j["actor"] = user.URL j["actor"] = user.URL
j["published"] = dt j["published"] = dt
j["to"] = []string{thewholeworld, user.URL + "/followers"} j["to"] = thewholeworld
j["type"] = "Update" j["type"] = "Update"
j["object"] = junkuser(user) j["object"] = junkuser(user)