Update welshman

This commit is contained in:
Jon Staab
2025-06-16 10:12:24 -07:00
parent dac9ef8e4e
commit cb0119b9b8
10 changed files with 148 additions and 141 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import {nthEq} from "@welshman/lib"
import type {Profile} from "@welshman/util"
import {
getTag,
@@ -29,10 +30,10 @@
if (shouldBroadcast) {
const router = Router.get()
const scenario = router.merge([router.FromUser(), router.Index()])
relays.push(
...router.merge([router.FromUser(), router.Index()]).policy(addMaximalFallbacks).getUrls(),
)
relays.push(...scenario.policy(addMaximalFallbacks).getUrls())
template.tags = template.tags.filter(nthEq(0, "-"))
} else {
template.tags = uniqTags([...template.tags, PROTECTED])
}