Add topics to classifieds

This commit is contained in:
2026-02-17 20:36:10 +00:00
committed by Jon Staab
parent 6d99e296e4
commit 006e8ca7dc
8 changed files with 172 additions and 8 deletions
+2 -1
View File
@@ -18,7 +18,8 @@
const {d, title, status} = fromPairs(event.tags)
const [_, price = 0, currency = "SAT"] = getTag("price", event.tags) || []
const images = getTagValues("image", event.tags)
const initialValues = {d, title, status, content, price: Number(price), currency, images}
const topics = getTagValues("t", event.tags)
const initialValues = {d, title, status, content, price: Number(price), currency, images, topics}
</script>
<ClassifiedForm {url} {initialValues}>