评论是否为组织者

This commit is contained in:
张成
2025-12-06 23:31:32 +08:00
parent 899c5881ac
commit 80dc582963

View File

@@ -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 (
<View