Commit 4275004
committed
fix(community-poi): default acceptsContributions to true
`acceptsContributions: z.boolean().optional()` was stored as `false`
when the field was absent from frontmatter, so @nuxt/content's
generated column made every POI evaluate `acceptsContributions === false`
— flagging all three real community projects as "showcase only" with
the lock badge on the overview.
Switch to `z.boolean().default(true)`: the SQL column is now
`BOOLEAN DEFAULT true`, so a POI is community-contributable unless it
explicitly opts out with `acceptsContributions: false`. Verified the
rebuilt content DB stores `true` for all three POIs (de + en).
https://claude.ai/code/session_01TWED5ZjQD6uv434RqTBaY21 parent 15037cd commit 4275004
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments