diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 4c44df70..8b2efffd 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -754,7 +754,7 @@ export class Post extends Component { } else if (op == UserOperation.Search) { let data = wsJsonToRes(msg); let xPosts = data.posts.filter( - p => p.post.id != Number(this.props.match.params.id) + p => p.post.ap_id != this.state.postRes?.post_view.post.ap_id ); this.setState({ crossPosts: xPosts.length > 0 ? xPosts : undefined }); } else if (op == UserOperation.LeaveAdmin) {