Disabling notifications

This commit is contained in:
collin 2026-05-20 20:53:00 +02:00
parent aec322b5c3
commit 8a2e2b4ca8

View file

@ -161,11 +161,10 @@ 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")) // visit := h.visits.HandleVisit(r.Header.Get("X-Forwarded-For"))
if visit != nil { // if visit != nil {
h.ntfy.PublishNewVisitNotification(visit) // 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":