Fix Slack notifications when URL is present (#4871)

pull/4850/head^2
Frank Elsinga 5 months ago committed by GitHub
commit ae224f9e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save