Compare commits

...

2 commits

Author SHA1 Message Date
Proddy
c1abaa04d2
Merge 9d0d5bfbd6 into 223cde831f 2025-01-18 15:35:53 +00:00
Proddy
9d0d5bfbd6
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
2025-01-10 14:27:34 +00:00

View file

@ -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);