From 9d0d5bfbd662e41f3add37d67e1c8d0609701c7c Mon Sep 17 00:00:00 2001 From: Proddy Date: Fri, 10 Jan 2025 14:27:34 +0000 Subject: [PATCH] Fix certificate expiry notif markdown Changed the notification message for certificate expiry to use parenthesis for the link instead of the current square bracket to correctly mask the link in markdown-supported notification agents --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 3ad8cfafc..bdf830fa7 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1434,7 +1434,7 @@ class Monitor extends BeanModel { for (let notification of notificationList) { try { log.debug("monitor", "Sending to " + notification.name); - await Notification.send(JSON.parse(notification.config), `[${this.name}][${this.url}] ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`); + await Notification.send(JSON.parse(notification.config), `[${this.name}](${this.url}) ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`); sent = true; } catch (e) { log.error("monitor", "Cannot send cert notification to " + notification.name);