diff --git a/src/components/Comments/index.tsx b/src/components/Comments/index.tsx index d471436..05fd87c 100644 --- a/src/components/Comments/index.tsx +++ b/src/components/Comments/index.tsx @@ -186,7 +186,9 @@ function CommentItem(props: { blink_id, } = props; const currentUserInfo = useUserInfo(); - const isGamePublisher = publisher_id === currentUserInfo.id; + // 判断评论的作者是否是组织者 + const isGamePublisher = publisher_id === comment.user.id; + // 判断当前登录用户是否是评论的作者 const isCommentPublisher = currentUserInfo.id === comment.user.id; return (