feat(comments): 支持编辑与管理可见历史,采纳展示改用楼层号

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 08:05:41 +08:00
parent d032668c66
commit 1b2b87c976
14 changed files with 716 additions and 42 deletions

View File

@@ -657,6 +657,7 @@ export default async function PostDetailPage({ params, searchParams }: PageProps
? post.question ?? {
solved: false,
accepted_comment_id: 0,
accepted_floor: 0,
can_accept: canManageTyped,
can_solve: canManageTyped,
can_reopen: false,
@@ -728,6 +729,11 @@ export default async function PostDetailPage({ params, searchParams }: PageProps
post.bounty?.accepted_comment_id ||
0
}
winnerUserIds={
post.lottery?.drawn
? (post.lottery.winners || []).map((w) => w.id)
: []
}
/>
) : (
<section className="panel p-6 sm:p-8 mt-6 text-center" aria-label="评论区">