The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/xesite: fuck

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 4e2eb873 ded584e1

-13
-13
cmd/xesite/main.go
··· 117 117 gh := &GitHubWebhook{fs: fs} 118 118 s := hmacsig.Handler256(gh, *githubSecret) 119 119 mux.Handle("/.within/hook/github", s) 120 - 121 - mux.HandleFunc("/.within/hook/localonlybegood", func(w http.ResponseWriter, r *http.Request) { 122 - if err := fs.Update(r.Context()); err != nil { 123 - if err == git.NoErrAlreadyUpToDate { 124 - w.WriteHeader(http.StatusOK) 125 - fmt.Fprintln(w, "already up to date") 126 - return 127 - } 128 - log.Println(err) 129 - http.Error(w, err.Error(), http.StatusInternalServerError) 130 - return 131 - } 132 - }) 133 120 134 121 mux.Handle("/.within/hook/patreon", &PatreonWebhook{fs: fs}) 135 122