all repos — honk @ 42e02c64dee98507190ff91ed0c711df6bd70fb6

my fork of honk

slightly simpler
Ted Unangst tedu@tedunangst.com
Sat, 19 Oct 2019 15:20:47 -0400
commit

42e02c64dee98507190ff91ed0c711df6bd70fb6

parent

59b7d36ad80cc2b4731b3c6010449da0b517e6ed

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M web.goweb.go

@@ -1534,13 +1534,11 @@

j := junk.New() j["subject"] = fmt.Sprintf("acct:%s@%s", user.Name, serverName) j["aliases"] = []string{user.URL} - var links []junk.Junk l := junk.New() l["rel"] = "self" l["type"] = `application/activity+json` l["href"] = user.URL - links = append(links, l) - j["links"] = links + j["links"] = []junk.Junk{l} w.Header().Set("Cache-Control", "max-age=3600") w.Header().Set("Content-Type", "application/jrd+json")