From 8b20c54e04337364bcc5191199542011b2504caf Mon Sep 17 00:00:00 2001 From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Fri, 1 May 2026 00:30:03 +0300 Subject: [PATCH] Autocommit in repo: ros.vados.ru, generated by owner: root, in 00:30:03 01.05.2026. --- html/AM-GlobalFunc.rsc | 4 +-- html/mod/AM-TG-Notifications.rsc | 2 ++ html/mod/AM-TG-Notifications.rsc.diff | 36 +++++++++++---------------- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index 7d6d1868c..8afe83fd0 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -17,9 +17,9 @@ :global GlobalFuncReady false; # Git commit id & info, expected configuration version -:global CommitId "main/317/bda7131a"; +:global CommitId "main/318/cc6455ca"; :global CommitTAG "unknown"; -:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 00:25:03 01.05.2026."; +:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 00:30:03 01.05.2026."; # The variables are received right here. :global GlobalConfVersion 138; diff --git a/html/mod/AM-TG-Notifications.rsc b/html/mod/AM-TG-Notifications.rsc index 73ad0d5eb..63bc2b292 100644 --- a/html/mod/AM-TG-Notifications.rsc +++ b/html/mod/AM-TG-Notifications.rsc @@ -118,8 +118,10 @@ :local Text [ :tostr $1 ]; :local Mode [ :tostr $2 ]; :local Excl [ :tostr $3 ]; + :global CharacterReplace; :global IfThenElse; + :local Chars { "body"={ "\\"; "`" }; "plain"={ "_"; "*"; "["; "]"; "("; ")"; "~"; "`"; ">"; diff --git a/html/mod/AM-TG-Notifications.rsc.diff b/html/mod/AM-TG-Notifications.rsc.diff index 143cb549f..63a688a44 100644 --- a/html/mod/AM-TG-Notifications.rsc.diff +++ b/html/mod/AM-TG-Notifications.rsc.diff @@ -28,17 +28,11 @@ < :global ExitOnError; $ExitOnError $0 $Err; --- > :global ExitOnError; $ExitOnError $0 $Err; -95a107 -> -105a118 -> -113a127 -> -117a132 -> -119a135 -> -130c146,150 +107d117 +< :global CertificateAvailable; +108a119 +> :global CertificateAvailable; +135c146,150 < :if ($Mode = "body") do={:return ("```\n" . $Text . "\n```")} --- > @@ -46,9 +40,9 @@ > :return ("```\n" . $Text . "\n```"); > } > -132a153 +137a153 > -139,140c160,168 +144,145c160,168 < :if ([ :len $TokenId ] = 0 || [ :len $ChatId ] = 0) do={:return false} < :if ([ :typeof $TelegramMessageIDs ] = "nothing") do={:set TelegramMessageIDs ({})} --- @@ -61,33 +55,33 @@ > :set TelegramMessageIDs ({}); > } > -151c179,181 +156c179,181 < } else={:set Text ($Text . [ $EscapeMD ($Notification->"message") "body" ])} --- > } else={ > :set Text ($Text . [ $EscapeMD ($Notification->"message") "body" ]); > } -161a192 +166a192 > -176c207,210 +181c207,210 < :if ([ :typeof $TelegramQueue ] = "nothing") do={:set TelegramQueue ({})} --- > > :if ([ :typeof $TelegramQueue ] = "nothing") do={ > :set TelegramQueue ({}); > } -191a226 +196a226 > -198a234 +203a234 > -200,201c236,238 +205,206c236,238 < } do={:global ExitOnError; $ExitOnError $0 $Err} < } --- > } do={ > :global ExitOnError; $ExitOnError $0 $Err; > } } -205a243 +210a243 > -206a245 +211a245 > -- 2.52.0