From 80dc58296390bc8b1f3bee57584edd696eee8f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Sat, 6 Dec 2025 23:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E6=98=AF=E5=90=A6=E4=B8=BA?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Comments/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (