Skip to content

Commit 9d0d5bf

Browse files
authored
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
1 parent be2faf6 commit 9d0d5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/model/monitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ class Monitor extends BeanModel {
14341434
for (let notification of notificationList) {
14351435
try {
14361436
log.debug("monitor", "Sending to " + notification.name);
1437-
await Notification.send(JSON.parse(notification.config), `[${this.name}][${this.url}] ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`);
1437+
await Notification.send(JSON.parse(notification.config), `[${this.name}](${this.url}) ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`);
14381438
sent = true;
14391439
} catch (e) {
14401440
log.error("monitor", "Cannot send cert notification to " + notification.name);

0 commit comments

Comments
 (0)