From dd29261a0c22928fa57a8551bc03fc2f4fc6e095 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 10 Jun 2025 18:57:29 +0200 Subject: [PATCH] inline the down prio --- server/notification-providers/ntfy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/notification-providers/ntfy.js b/server/notification-providers/ntfy.js index 3eccb34e1..ab0df4247 100644 --- a/server/notification-providers/ntfy.js +++ b/server/notification-providers/ntfy.js @@ -43,7 +43,8 @@ class Ntfy extends NotificationProvider { if (heartbeatJSON.status === DOWN) { tags = [ "red_circle" ]; status = "Down"; - priority = downPriority; + // defaults to max(priority + 1, 5) + priority = notification.ntfyPriorityDown || (priority === 5 ? priority : priority + 1); } else if (heartbeatJSON["status"] === UP) { tags = [ "green_circle" ]; status = "Up";