Skip to content

Commit

Permalink
Fix Slack notifications when URL is present (louislam#4871)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jun 27, 2024
2 parents 8efbe95 + 132f68a commit ae224f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/notification-providers/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ class Slack extends NotificationProvider {

}

if (monitorJSON.url) {
const address = this.extractAdress(monitorJSON);
if (address) {
actions.push({
"type": "button",
"text": {
"type": "plain_text",
"text": "Visit site",
},
"value": "Site",
"url": monitorJSON.url,
"url": address,
});
}

Expand Down

0 comments on commit ae224f9

Please sign in to comment.