diff --git a/server/notification-providers/ntfy.js b/server/notification-providers/ntfy.js index 9fe7fa2aa..340418473 100644 --- a/server/notification-providers/ntfy.js +++ b/server/notification-providers/ntfy.js @@ -22,7 +22,12 @@ class Ntfy extends NotificationProvider { "Authorization": "Bearer " + notification.ntfyaccesstoken, }; } - let config = { headers }; + if (notification.ntfyCall) { + headers["X-Call"] = notification.ntfyCall; + } + let config = { + headers, + }; config = this.getAxiosConfigWithProxy(config); // If heartbeatJSON is null, assume non monitoring notification (Certificate warning) or testing. if (heartbeatJSON == null) { diff --git a/src/components/notifications/Ntfy.vue b/src/components/notifications/Ntfy.vue index 3de807d1e..242e0f88e 100644 --- a/src/components/notifications/Ntfy.vue +++ b/src/components/notifications/Ntfy.vue @@ -52,6 +52,13 @@ +