- some: url => (
- <a
- className={!post.stickied ? "text-body" : "text-primary"}
- href={url}
- title={url}
- rel={relTags}
- >
- <div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
- </a>
- ),
- none: (
- <Link
- className={!post.stickied ? "text-body" : "text-primary"}
- to={`/post/${post.id}`}
- title={i18n.t("comments")}
- >
- <div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
- </Link>
- ),
+ some: url =>
+ this.props.showBody ? (
+ <a
+ className={!post.stickied ? "text-body" : "text-primary"}
+ href={url}
+ title={url}
+ rel={relTags}
+ >
+ <div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
+ </a>
+ ) : (
+ this.postLink
+ ),
+ none: this.postLink,