Merge branch 'master' into hevans/add-heii-on-call-notification-provider

This commit is contained in:
Frank Elsinga
2024-03-05 19:20:14 +01:00
committed by GitHub
15 changed files with 1607 additions and 163 deletions

View File

@@ -54,14 +54,17 @@ class Ntfy extends NotificationProvider {
"priority": priority,
"title": monitorJSON.name + " " + status + " [Uptime-Kuma]",
"tags": tags,
"actions": [
};
if (monitorJSON.url && monitorJSON.url !== "https://") {
data.actions = [
{
"action": "view",
"label": "Open " + monitorJSON.name,
"url": monitorJSON.url,
}
]
};
},
];
}
if (notification.ntfyIcon) {
data.icon = notification.ntfyIcon;