mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-25 07:19:35 -05:00
Fix Slack notifications when URL is present (#4871)
This commit is contained in:
commit
ae224f9e18
@ -48,7 +48,8 @@ class Slack extends NotificationProvider {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (monitorJSON.url) {
|
const address = this.extractAdress(monitorJSON);
|
||||||
|
if (address) {
|
||||||
actions.push({
|
actions.push({
|
||||||
"type": "button",
|
"type": "button",
|
||||||
"text": {
|
"text": {
|
||||||
@ -56,7 +57,7 @@ class Slack extends NotificationProvider {
|
|||||||
"text": "Visit site",
|
"text": "Visit site",
|
||||||
},
|
},
|
||||||
"value": "Site",
|
"value": "Site",
|
||||||
"url": monitorJSON.url,
|
"url": address,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user