mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-31 11:03:11 +08:00
feat(ntfy): include tag values in ntfy tags array (#6766)
Co-authored-by: epifeny <epifeny@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,13 @@ class Ntfy extends NotificationProvider {
|
||||
|
||||
// Include monitor's assigned tags
|
||||
if (monitorJSON && monitorJSON.tags && Array.isArray(monitorJSON.tags)) {
|
||||
const monitorTagNames = monitorJSON.tags.map((tag) => tag.name);
|
||||
const monitorTagNames = monitorJSON.tags.map((tag) => {
|
||||
// Include value if it exists
|
||||
if (tag.value) {
|
||||
return `${tag.name}: ${tag.value}`;
|
||||
}
|
||||
return tag.name;
|
||||
});
|
||||
tags = tags.concat(monitorTagNames);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user