diff --git a/honk.go b/honk.go index 65685ac..ea5459e 100644 --- a/honk.go +++ b/honk.go @@ -173,9 +173,9 @@ func homepage(w http.ResponseWriter, r *http.Request) { } else { honks = gethonksforuser(userid) honks = osmosis(honks, userid) - if len(honks) > 0 { - templinfo["TopXID"] = honks[0].XID - } + } + if len(honks) > 0 { + templinfo["TopXID"] = honks[0].XID } templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r) } @@ -1715,6 +1715,7 @@ func serve() { getters := mux.Methods("GET").Subrouter() getters.HandleFunc("/", homepage) + getters.HandleFunc("/home", homepage) getters.HandleFunc("/front", homepage) getters.HandleFunc("/robots.txt", nomoroboto) getters.HandleFunc("/rss", showrss) diff --git a/views/header.html b/views/header.html index a43d860..88aa87c 100644 --- a/views/header.html +++ b/views/header.html @@ -14,9 +14,9 @@