From 2107624f1cb1b8410913d580dd6fdfa7ed4f598b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 21 Aug 2023 21:05:23 +0300 Subject: [PATCH] Prevent health checks warnings for disabled notifications (cherry picked from commit 5a7f42a63e25d6abdb187c37e92a908a6b85fb4d) --- src/NzbDrone.Core/Notifications/NotificationFactory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/NotificationFactory.cs b/src/NzbDrone.Core/Notifications/NotificationFactory.cs index 9cf5795cf..54037917a 100644 --- a/src/NzbDrone.Core/Notifications/NotificationFactory.cs +++ b/src/NzbDrone.Core/Notifications/NotificationFactory.cs @@ -36,6 +36,11 @@ namespace NzbDrone.Core.Notifications _logger = logger; } + protected override List Active() + { + return base.Active().Where(c => c.Enable).ToList(); + } + public List OnGrabEnabled(bool filterBlockedNotifications = true) { if (filterBlockedNotifications)