From e4930efff97f6e5ffc75c9da90e89b18fe09c49d Mon Sep 17 00:00:00 2001 From: collin Date: Sun, 19 Apr 2026 22:35:10 +0200 Subject: [PATCH] Enabling visits notification --- controller.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controller.go b/controller.go index fa3ca16..3d664b2 100644 --- a/controller.go +++ b/controller.go @@ -160,11 +160,11 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { getStaticFile("./client/favicon.ico", "image/png", w) case r.Method == "GET" && r.URL.Path == "/": - // Temporarily disable visit notifications because it's just spam - // visit := h.visits.HandleVisit(r.Header.Get("X-Forwarded-For")) - // if visit != nil { - // h.ntfy.PublishNewVisitNotification(visit) - // } + visit := h.visits.HandleVisit(r.Header.Get("X-Forwarded-For")) + if visit != nil { + h.ntfy.PublishNewVisitNotification(visit) + } + getStaticFile("./client/index.html", "text/html", w) case r.Method == "GET" && r.URL.Path == "/rsvp":