inline the down prio

This commit is contained in:
Frank Elsinga 2025-06-10 18:57:37 +02:00 committed by GitHub
parent dd29261a0c
commit 915c35f4dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,8 +37,6 @@ class Ntfy extends NotificationProvider {
let tags = []; let tags = [];
let status = "unknown"; let status = "unknown";
let priority = notification.ntfyPriority || 4; let priority = notification.ntfyPriority || 4;
// defaults to max(priority + 1, 5)
let downPriority = notification.ntfyPriorityDown || (priority === 5 ? priority : priority + 1);
if ("status" in heartbeatJSON) { if ("status" in heartbeatJSON) {
if (heartbeatJSON.status === DOWN) { if (heartbeatJSON.status === DOWN) {
tags = [ "red_circle" ]; tags = [ "red_circle" ];