评论是否为组织者
This commit is contained in:
@@ -186,7 +186,9 @@ function CommentItem(props: {
|
|||||||
blink_id,
|
blink_id,
|
||||||
} = props;
|
} = props;
|
||||||
const currentUserInfo = useUserInfo();
|
const currentUserInfo = useUserInfo();
|
||||||
const isGamePublisher = publisher_id === currentUserInfo.id;
|
// 判断评论的作者是否是组织者
|
||||||
|
const isGamePublisher = publisher_id === comment.user.id;
|
||||||
|
// 判断当前登录用户是否是评论的作者
|
||||||
const isCommentPublisher = currentUserInfo.id === comment.user.id;
|
const isCommentPublisher = currentUserInfo.id === comment.user.id;
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
|
|||||||
Reference in New Issue
Block a user