all repos — honk @ 9a91ab546ebda986c501c8553deca8a70ff60496

my fork of honk

fetch pfp attempt uno
Anirudh Oppiliappan x@icyphox.sh
Tue, 08 Nov 2022 15:41:52 +0530
commit

9a91ab546ebda986c501c8553deca8a70ff60496

parent

0f8c6f22cde54c37cff4ebc2bdb0eeb2faa46041

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

jump to
M web.goweb.go

@@ -35,6 +35,7 @@ "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"

@@ -2247,6 +2248,7 @@ func avatate(w http.ResponseWriter, r *http.Request) {

if develMode { loadAvatarColors() } + var a []byte n := r.FormValue("a") if redir := lookatme(n); redir != "" { http.Redirect(w, r, redir, http.StatusSeeOther)

@@ -2256,6 +2258,7 @@ a := genAvatar(n)

if !develMode { w.Header().Set("Cache-Control", "max-age="+somedays()) } + w.Write(a) }