Fix some alerts stuff

This commit is contained in:
Jon Staab
2025-11-03 11:10:16 -08:00
parent b1c68972c9
commit 42a550788a
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -17,14 +17,14 @@
const {alert}: Props = $props()
const cron = $derived(getTagValue("cron", alert.tags))
const room = $derived(getTagValue("room", alert.tags))
const channel = $derived(getTagValue("channel", alert.tags))
const feeds = $derived(getTagValues("feed", alert.tags))
const description = $derived(
getTagValue("description", alert.tags) ||
[
`${cron?.endsWith("1") ? "Weekly" : "Daily"} alert for events`,
displayFeeds(feeds.map(parseJson)),
`sent via ${room}.`,
`sent via ${channel}.`,
].join(" "),
)