Disabling visits notifications
This commit is contained in:
parent
b3aa9ea672
commit
7742bf21bf
1 changed files with 5 additions and 4 deletions
|
|
@ -160,10 +160,11 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
getStaticFile("./client/favicon.ico", "image/png", w)
|
getStaticFile("./client/favicon.ico", "image/png", w)
|
||||||
|
|
||||||
case r.Method == "GET" && r.URL.Path == "/":
|
case r.Method == "GET" && r.URL.Path == "/":
|
||||||
visit := h.visits.HandleVisit(r.Header.Get("X-Forwarded-For"))
|
// Temporarily disable visit notifications because it's just spam
|
||||||
if visit != nil {
|
// visit := h.visits.HandleVisit(r.Header.Get("X-Forwarded-For"))
|
||||||
h.ntfy.PublishNewVisitNotification(visit)
|
// if visit != nil {
|
||||||
}
|
// h.ntfy.PublishNewVisitNotification(visit)
|
||||||
|
// }
|
||||||
getStaticFile("./client/index.html", "text/html", w)
|
getStaticFile("./client/index.html", "text/html", w)
|
||||||
|
|
||||||
case r.Method == "GET" && r.URL.Path == "/rsvp":
|
case r.Method == "GET" && r.URL.Path == "/rsvp":
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue