From e31ef63b013785f392bc9d3b57483b38c1bdc629 Mon Sep 17 00:00:00 2001 From: Erik Benoist Date: Wed, 7 Jan 2026 18:16:49 -0600 Subject: [PATCH] feat: Adds support for ntfy's phone call feature (#6640) --- server/notification-providers/ntfy.js | 7 ++++++- src/components/notifications/Ntfy.vue | 7 +++++++ src/lang/en.json | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) 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 @@ +
+ + +
+ {{ $t("ntfyCallHelptext") }} +
+