aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-04-19 09:04:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-04-19 09:04:08 +0200
commit8cd03167ca0bd47efd9b7c9b12aabebbe228b36c (patch)
tree86108c538e8dcdc1daa2def3e006d79e973652f1
parent6fd0becf64184184642e719e288bc537a0bee499 (diff)
mod/notification-matrix: string protocol for display
-rw-r--r--mod/notification-matrix.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-matrix.rsc b/mod/notification-matrix.rsc
index 7eae1b0..9442f54 100644
--- a/mod/notification-matrix.rsc
+++ b/mod/notification-matrix.rsc
@@ -76,6 +76,7 @@
:global EitherOr;
:global FetchUserAgentStr;
:global LogPrint;
+ :global ProtocolStrip;
:global SymbolForNotification;
:local PrepareText do={
@@ -117,11 +118,12 @@
($Notification->"subject")) ] . "</h2>" . "<pre><code>" . \
[ $PrepareText ($Notification->"message") ] . "</code></pre>");
:if ([ :len ($Notification->"link") ] > 0) do={
+ :local Label [ $ProtocolStrip ($Notification->"link") ];
:set Plain ($Plain . "\n" . [ $SymbolForNotification "link" ] . \
- "[" . $Notification->"link" . "](" . $Notification->"link" . ")");
+ "[" . $Label . "](" . $Notification->"link" . ")");
:set Formatted ($Formatted . "<br/>" . [ $SymbolForNotification "link" ] . \
"<a href=\"" . [ $PrepareText ($Notification->"link") ] . "\">" . \
- [ $PrepareText ($Notification->"link") ] . "</a>");
+ [ $PrepareText $Label ] . "</a>");
}
:do {