diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index e908d91..da279a1 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -155,7 +155,9 @@ func (s *Server) handleTrigger(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte("summarizer error")) return } - if s.Notifier != nil { + // Only push if explicitly requested + pushFlag := strings.EqualFold(r.URL.Query().Get("push"), "1") || strings.EqualFold(r.URL.Query().Get("push"), "true") + if pushFlag && s.Notifier != nil { title := fmt.Sprintf("IRC digest %s (%s)", channel, window) _ = s.Notifier.Notify(ctx, title, summary) if s.Metrics != nil {