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

Co-authored-by: epifeny <epifeny@users.noreply.github.com>
This commit is contained in:
Epifeny
2026-01-19 14:23:09 +02:00
committed by GitHub
parent 52737a1299
commit 8bf929a958

View File

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