From 93c51504f93d7828674f797f06e24d3a3fcd9b95 Mon Sep 17 00:00:00 2001 From: ngc7331 Date: Wed, 6 Apr 2022 08:38:48 +0800 Subject: [PATCH] fixes: formatting and security issues Co-authored-by: Matthew Nickson --- server/notification-providers/pushdeer.js | 6 +++--- src/components/notifications/Pushdeer.vue | 6 +++--- src/languages/en.js | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/notification-providers/pushdeer.js b/server/notification-providers/pushdeer.js index f86577693..6831b8cce 100644 --- a/server/notification-providers/pushdeer.js +++ b/server/notification-providers/pushdeer.js @@ -14,11 +14,11 @@ class Pushdeer extends NotificationProvider { let title; if (valid && heartbeatJSON.status == UP) { - title = "## UptimeKuma: " + monitorJSON.name + " up"; + title = "## Uptime Kuma: " + monitorJSON.name + " up"; } else if (valid && heartbeatJSON.status == DOWN) { - title = "## UptimeKuma: " + monitorJSON.name + " down"; + title = "## Uptime Kuma: " + monitorJSON.name + " down"; } else { - title = "## UptimeKuma Message"; + title = "## Uptime Kuma Message"; } let data = { diff --git a/src/components/notifications/Pushdeer.vue b/src/components/notifications/Pushdeer.vue index 762715504..80d0f48ff 100644 --- a/src/components/notifications/Pushdeer.vue +++ b/src/components/notifications/Pushdeer.vue @@ -1,11 +1,11 @@ @@ -16,4 +16,4 @@ export default { HiddenInput, }, }; - \ No newline at end of file + diff --git a/src/languages/en.js b/src/languages/en.js index 2dcec68cc..f432a9c46 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -451,4 +451,5 @@ export default { onebotPrivateMessage: "Private", onebotUserOrGroupId: "Group/User ID", onebotSafetyTips: "For safety, must set access token", + "Pushdeer Key": "Pushdeer Key", };