Merge pull request #1310 from mr00z/main

This commit is contained in:
SleeplessOne1917 2023-06-15 17:38:07 +00:00 committed by GitHub
commit f2db90196d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1382,9 +1382,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
} }
showMobilePreview() { showMobilePreview() {
const body = this.postView.post.body; const { body, id } = this.postView.post;
return !this.showBody && body ? ( return !this.showBody && body ? (
<Link className="text-body" to={`/post/${id}`}>
<div className="md-div mb-1 preview-lines">{body}</div> <div className="md-div mb-1 preview-lines">{body}</div>
</Link>
) : ( ) : (
<></> <></>
); );