From 39a54eb8f63b90f1d8d324c5d84f46cd4e8403cb Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 21 Aug 2023 21:04:30 +0300 Subject: [PATCH] Prevent health checks warnings for disabled notifications --- 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 7694b1837..ffdbd482c 100644 --- a/src/NzbDrone.Core/Notifications/NotificationFactory.cs +++ b/src/NzbDrone.Core/Notifications/NotificationFactory.cs @@ -27,6 +27,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)