mod/notification-ntfy: fix ntfy overrides

This commit is contained in:
Ignacio Serrano 2024-10-01 20:32:37 +02:00
parent f75e701be3
commit 5135e836b8

View file

@ -87,7 +87,7 @@
:return false; :return false;
} }
:local Url ("https://" . $NtfyServer . "/" . [ $UrlEncode $NtfyTopic ]); :local Url ("https://" . $Server . "/" . [ $UrlEncode $Topic ]);
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \ :local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \ ("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) }); ("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
@ -97,7 +97,7 @@
} }
:do { :do {
:if ($NtfyServer = "ntfy.sh") do={ :if ($Server = "ntfy.sh") do={
:if ([ $CertificateAvailable "ISRG Root X1" ] = false) do={ :if ([ $CertificateAvailable "ISRG Root X1" ] = false) do={
$LogPrint warning $0 ("Downloading required certificate failed."); $LogPrint warning $0 ("Downloading required certificate failed.");
:error false; :error false;