mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-04 18:21:13 +00:00
Fix showing crosspost dupes. Fixes #900
This commit is contained in:
parent
87c30705ef
commit
75653c51d7
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ export class Post extends Component<any, PostState> {
|
||||||
} else if (op == UserOperation.Search) {
|
} else if (op == UserOperation.Search) {
|
||||||
let data = wsJsonToRes<SearchResponse>(msg);
|
let data = wsJsonToRes<SearchResponse>(msg);
|
||||||
let xPosts = data.posts.filter(
|
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 });
|
this.setState({ crossPosts: xPosts.length > 0 ? xPosts : undefined });
|
||||||
} else if (op == UserOperation.LeaveAdmin) {
|
} else if (op == UserOperation.LeaveAdmin) {
|
||||||
|
|
Loading…
Reference in a new issue