diff --git a/server/notification-providers/ntfy.js b/server/notification-providers/ntfy.js index 8a0ef6250..442d8068b 100644 --- a/server/notification-providers/ntfy.js +++ b/server/notification-providers/ntfy.js @@ -8,9 +8,6 @@ class Ntfy extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; try { - if (notification.ntfyserverurl && notification.ntfyserverurl.endsWith("/")) { - notification.ntfyserverurl = notification.ntfyserverurl.slice(0, -1); - } await axios.post(`${notification.ntfyserverurl}`, { "topic": notification.ntfytopic, "message": msg, diff --git a/src/components/notifications/Ntfy.vue b/src/components/notifications/Ntfy.vue index 04bc1b9fa..fd6abef5e 100644 --- a/src/components/notifications/Ntfy.vue +++ b/src/components/notifications/Ntfy.vue @@ -22,6 +22,7 @@ export default { mounted() { if (typeof this.$parent.notification.ntfyPriority === "undefined") { + this.$parent.notification.ntfyserverurl = "https://ntfy.sh"; this.$parent.notification.ntfyPriority = 5; } },