From 60493f0f8645ba2499ad4aaf10d0e94a2b212001 Mon Sep 17 00:00:00 2001 From: Niyas <54862871+NiNiyas@users.noreply.github.com> Date: Wed, 14 Jul 2021 21:59:16 +0530 Subject: [PATCH] Updated Slack test notification --- server/notification.js | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/server/notification.js b/server/notification.js index 37a2aaa0b..fb8eea662 100644 --- a/server/notification.js +++ b/server/notification.js @@ -128,42 +128,7 @@ class Notification { } else if (notification.type === "slack") { try { if (heartbeatJSON == null) { - let data = { - "blocks": [{ - "type": "header", - "text": { - "type": "plain_text", - "text": "Uptime Kuma - Slack Testing" - } - }, - { - "type": "section", - "fields": [{ - "type": "mrkdwn", - "text": "*Message*\nSlack Testing" - }, - { - "type": "mrkdwn", - "text": "*Time (UTC)*\nSlack Testing" - } - ] - }, - { - "type": "actions", - "elements": [ - { - "type": "button", - "text": { - "type": "plain_text", - "text": "Visit Uptime Kuma", - }, - "value": "Uptime-Kuma", - "url": notification.slackbutton - } - ] - } - ] - } + let data = {'text': "Uptime Kuma Slack testing successful."} let res = await axios.post(notification.slackwebhookURL, data) return true; }