mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
feat: allow templating in the Signal notificaiton provider (#6989)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
co-authored by
autofix-ci[bot]
Frank Elsinga
parent
c90a7f30e1
commit
019b4b7503
@@ -11,8 +11,14 @@ class Signal extends NotificationProvider {
|
||||
const okMsg = "Sent Successfully.";
|
||||
|
||||
try {
|
||||
let message = msg;
|
||||
|
||||
if (notification.signalUseTemplate) {
|
||||
message = await this.renderTemplate(notification.signalTemplate, msg, monitorJSON, heartbeatJSON);
|
||||
}
|
||||
|
||||
let data = {
|
||||
message: msg,
|
||||
message,
|
||||
number: notification.signalNumber,
|
||||
recipients: notification.signalRecipients.replace(/\s/g, "").split(","),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user