remove stupid import
Anirudh Oppiliappan x@icyphox.sh
Tue, 20 Jun 2023 22:42:08 +0300
M
web.go
→
web.go
@@ -36,7 +36,6 @@ "time"
"unicode/utf8" "github.com/gorilla/mux" - "github.com/sassoftware/relic/lib/dlog" "humungus.tedunangst.com/r/webs/cache" "humungus.tedunangst.com/r/webs/httpsig" "humungus.tedunangst.com/r/webs/junk"@@ -2233,12 +2232,13 @@ l["rel"] = "self"
l["type"] = `application/activity+json` l["href"] = user.URL j["links"] = []junk.Junk{l} - return j.ToBytes(), true l2 := junk.New() l2["rel"] = "http://webfinger.net/rel/profile-page" l2["type"] = "text/html" l2["href"] = pretty j["links"] = []junk.Junk{l, l2} + + return j.ToBytes(), true }}) func fingerlicker(w http.ResponseWriter, r *http.Request) {@@ -2328,7 +2328,7 @@ if redir := lookatme(n); redir != "" {
http.Redirect(w, r, redir, http.StatusSeeOther) return } - a := genAvatar(n) + a = genAvatar(n) if !develMode { w.Header().Set("Cache-Control", "max-age="+somedays()) }