mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
This commit is contained in:
commit
da92400401
1 changed files with 7 additions and 4 deletions
|
@ -54,14 +54,17 @@ class Ntfy extends NotificationProvider {
|
||||||
"priority": priority,
|
"priority": priority,
|
||||||
"title": monitorJSON.name + " " + status + " [Uptime-Kuma]",
|
"title": monitorJSON.name + " " + status + " [Uptime-Kuma]",
|
||||||
"tags": tags,
|
"tags": tags,
|
||||||
"actions": [
|
};
|
||||||
|
|
||||||
|
if (monitorJSON.url && monitorJSON.url !== "https://") {
|
||||||
|
data.actions = [
|
||||||
{
|
{
|
||||||
"action": "view",
|
"action": "view",
|
||||||
"label": "Open " + monitorJSON.name,
|
"label": "Open " + monitorJSON.name,
|
||||||
"url": monitorJSON.url,
|
"url": monitorJSON.url,
|
||||||
|
},
|
||||||
|
];
|
||||||
}
|
}
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
if (notification.ntfyIcon) {
|
if (notification.ntfyIcon) {
|
||||||
data.icon = notification.ntfyIcon;
|
data.icon = notification.ntfyIcon;
|
||||||
|
|
Loading…
Reference in a new issue