feat(comments): 支持编辑与管理可见历史,采纳展示改用楼层号
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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="评论区">
|
||||
|
||||
Reference in New Issue
Block a user