[Ntfy] Only include action link if monitor url is defined #3274 (#4411)

pull/4485/head
Frank Elsinga 9 months ago committed by GitHub
commit da92400401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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;

Loading…
Cancel
Save