);
}
- showBodyPreview() {
- const { body, id } = this.postView.post;
-
- return !this.showBody && body ? (
- <Link className="text-body mt-2 d-block" to={`/post/${id}`}>
- <div className="md-div mb-1 preview-lines">{body}</div>
- </Link>
- ) : (
- <></>
- );
- }
-
listing() {
return (
<>
{/* If it has a thumbnail, do a right aligned thumbnail */}
{this.mobileThumbnail()}
- {/* Show a preview of the post body */}
- {this.showBodyPreview()}
-
{this.commentsLine(true)}
{this.userActionsLine()}
{this.duplicatesLine()}
<div className="col-12">
{this.postTitleLine()}
{this.createdLine()}
- {this.showBodyPreview()}
{this.commentsLine()}
{this.duplicatesLine()}
{this.userActionsLine()}