Skip to content

Commit

Permalink
Fix showing crosspost dupes. Fixes #900 (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Feb 3, 2023
1 parent e03d3c4 commit 1dd86fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/post/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export class Post extends Component<any, PostState> {
} else if (op == UserOperation.Search) {
let data = wsJsonToRes<SearchResponse>(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) {
Expand Down

0 comments on commit 1dd86fd

Please sign in to comment.