chore(spec): 归档 blog-5l——三任务收敛(预览一致性/排版提醒/瞬间置顶隐藏)

Spec: 2026-11-05_blog-5l-admin-preview-moments

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-05 10:03:34 +08:00
1 parent c5889f960b
commit b99e6e744b
17 files changed
+406 -17

No files matched your search

+3
View File
@@ -359,6 +359,9 @@ export const collections = {
tags: z.array(z.string()),
text: z.string().optional(),
image: image().optional(),
// 5l:与 posts 同语义的置顶/隐藏真字段(瞬间无 tags-hidden 旧写法,纯字段判定)
pinned: z.boolean().optional(),
hidden: z.boolean().optional(),
})
// 瞬间的存在性约束:一句话、一张图至少有其一
.refine((moment) => moment.text !== undefined || moment.image !== undefined, {