mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 06:29:57 +08:00
clean up + default ntfs.sh server url
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user