feat(ntfy): include tag values in ntfy tags array (#6766)

Co-authored-by: epifeny <epifeny@users.noreply.github.com>
pull/6767/head
Epifeny 3 months ago committed by GitHub
parent 52737a1299
commit 8bf929a958
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}

Loading…
Cancel
Save