diff --git a/src/shared/components/home/signup.tsx b/src/shared/components/home/signup.tsx index 16a3cc6d..71398a8d 100644 --- a/src/shared/components/home/signup.tsx +++ b/src/shared/components/home/signup.tsx @@ -298,27 +298,22 @@ export class Signup extends Component { )} {this.renderCaptcha()} - {siteView.local_site.enable_nsfw && ( -
-
-
- - -
+
+
+
+ +
- )} +
{ />
- {enableNsfw(this.state.siteRes) && ( -
-
- - -
+
+
+ +
- )} +
{ const post = this.postView.post; return ( { to={`/post/${post.id}`} title={i18n.t("comments")} > -
@@ -519,88 +519,80 @@ export class PostListing extends Component { return (
-
- {url ? ( - this.props.showBody ? ( - -
- - ) : ( - this.postLink - ) +
+ {url && this.props.showBody ? ( + ) : ( this.postLink )} - {(url && isImage(url)) || - (post.thumbnail_url && ( - - ))} - {post.removed && ( - - {i18n.t("removed")} - - )} - {post.deleted && ( - - - - )} - {post.locked && ( - - - - )} - {post.featured_community && ( - - - - )} - {post.featured_local && ( - - - - )} - {post.nsfw && ( - - {i18n.t("nsfw")} - - )}
+ {(url && isImage(url)) || + (post.thumbnail_url && ( + + ))} + {post.removed && ( + + {i18n.t("removed")} + + )} + {post.deleted && ( + + + + )} + {post.locked && ( + + + + )} + {post.featured_community && ( + + + + )} + {post.featured_local && ( + + + + )} + {post.nsfw && ( + + {i18n.t("nsfw")} + + )}
); }