From: Dessalines Date: Sat, 19 Nov 2022 04:39:32 +0000 (-0500) Subject: Fix wrong comment link. Fixes #714 (#865) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.ja.md?a=commitdiff_plain;h=36c1c1f26230fc149faacebb8ee12deffaa347a7;p=lemmy-ui.git Fix wrong comment link. Fixes #714 (#865) --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d513b10..4a1966c 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -448,31 +448,39 @@ export class PostListing extends Component { ); } + get postLink() { + let post = this.props.post_view.post; + return ( + +
+ + ); + } + postTitleLine() { let post = this.props.post_view.post; return (
{post.url.match({ - some: url => ( - -
- - ), - none: ( - -
- - ), + some: url => + this.props.showBody ? ( + +
+ + ) : ( + this.postLink + ), + none: this.postLink, })} {post.url.map(isImage).or(post.thumbnail_url).unwrapOr(false) && (