From 337d4cf9a185310f6a13eaa41f8f4ef714669cf8 Mon Sep 17 00:00:00 2001 From: collin Date: Tue, 2 Sep 2025 16:53:56 +0200 Subject: [PATCH] Actually publish visit notification --- controller.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controller.go b/controller.go index da17bf1..95293c8 100644 --- a/controller.go +++ b/controller.go @@ -154,7 +154,10 @@ func SetupAuth() { func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Printf("%s - [%s] (%s) %s\n", time.Now().Format(time.RFC3339), r.RemoteAddr, r.Method, r.URL) - h.visits.HandleVisit(r.RemoteAddr) + visit := h.visits.HandleVisit(r.RemoteAddr) + if visit != nil { + h.ntfy.PublishNewVisitNotification(visit) + } switch true { case r.Method == "GET" && r.URL.Path == "/favicon.ico":