feat(ntfy): include tag values in ntfy tags array (#6766)
Co-authored-by: epifeny <epifeny@users.noreply.github.com>
This commit is contained in:
parent
52737a1299
commit
8bf929a958
@ -60,7 +60,13 @@ class Ntfy extends NotificationProvider {
|
|||||||
|
|
||||||
// Include monitor's assigned tags
|
// Include monitor's assigned tags
|
||||||
if (monitorJSON && monitorJSON.tags && Array.isArray(monitorJSON.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);
|
tags = tags.concat(monitorTagNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user