add default icon.png

This commit is contained in:
Ted Unangst 2022-07-02 18:01:49 -04:00
parent 6ada675630
commit be5b1ae987
3 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,8 @@ changelog
=== next === next
+ Add a default icon.png.
+ Try to fix hoot again because Twitter did a Twitter. + Try to fix hoot again because Twitter did a Twitter.
=== 0.9.8 Tentative Tentacle === 0.9.8 Tentative Tentacle

BIN
views/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 B

3
web.go
View File

@ -2120,6 +2120,9 @@ func serveviewasset(w http.ResponseWriter, r *http.Request) {
serveasset(w, r, viewDir) serveasset(w, r, viewDir)
} }
func servedataasset(w http.ResponseWriter, r *http.Request) { func servedataasset(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/favicon.ico" {
r.URL.Path = "/icon.png"
}
serveasset(w, r, dataDir) serveasset(w, r, dataDir)
} }