mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-03 03:07:02 +00:00
Change hostname for group mail notification (#6253)
This commit is contained in:
@@ -69,6 +69,8 @@ class SMTP extends NotificationProvider {
|
|||||||
|
|
||||||
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
|
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
|
||||||
monitorHostnameOrURL = monitorJSON["url"];
|
monitorHostnameOrURL = monitorJSON["url"];
|
||||||
|
} else if (monitorJSON["type"] === "group") {
|
||||||
|
monitorHostnameOrURL = "Group: " + monitorJSON["name"];
|
||||||
} else {
|
} else {
|
||||||
monitorHostnameOrURL = monitorJSON["hostname"];
|
monitorHostnameOrURL = monitorJSON["hostname"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user