mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-06-23 04:10:14 +00:00
Change hostname for group mail notification (#6253)
Auto Test / check-linters (push) Has been cancelled
Auto Test / auto-test (16, macos-latest) (push) Has been cancelled
Auto Test / auto-test (16, ARM64) (push) Has been cancelled
Auto Test / auto-test (16, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (16, windows-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, ARM64) (push) Has been cancelled
Auto Test / auto-test (20.5, macos-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, windows-latest) (push) Has been cancelled
Auto Test / armv7-simple-test (16, ARMv7) (push) Has been cancelled
Auto Test / armv7-simple-test (20.5, ARMv7) (push) Has been cancelled
Auto Test / e2e-tests (push) Has been cancelled
Auto Test / frontend-unit-tests (push) Has been cancelled
Auto Test / check-linters (push) Has been cancelled
Auto Test / auto-test (16, macos-latest) (push) Has been cancelled
Auto Test / auto-test (16, ARM64) (push) Has been cancelled
Auto Test / auto-test (16, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (16, windows-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, ARM64) (push) Has been cancelled
Auto Test / auto-test (20.5, macos-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (20.5, windows-latest) (push) Has been cancelled
Auto Test / armv7-simple-test (16, ARMv7) (push) Has been cancelled
Auto Test / armv7-simple-test (20.5, ARMv7) (push) Has been cancelled
Auto Test / e2e-tests (push) Has been cancelled
Auto Test / frontend-unit-tests (push) Has been cancelled
This commit is contained in:
@@ -69,6 +69,8 @@ class SMTP extends NotificationProvider {
|
||||
|
||||
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
|
||||
monitorHostnameOrURL = monitorJSON["url"];
|
||||
} else if (monitorJSON["type"] === "group") {
|
||||
monitorHostnameOrURL = "Group: " + monitorJSON["name"];
|
||||
} else {
|
||||
monitorHostnameOrURL = monitorJSON["hostname"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user