From c7581239337242c7a5f22071cbcd49788e508423 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 19 Oct 2019 15:20:47 -0400 Subject: [PATCH] slightly simpler --- web.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web.go b/web.go index 282de4b..1e73426 100644 --- a/web.go +++ b/web.go @@ -1534,13 +1534,11 @@ func fingerlicker(w http.ResponseWriter, r *http.Request) { 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")