]> Untitled Git - lemmy.git/commitdiff
Hiding thumbnails for nsfw posts and nsfw community posts.
authorDessalines <tyhou13@gmx.com>
Sat, 23 Nov 2019 00:26:16 +0000 (16:26 -0800)
committerDessalines <tyhou13@gmx.com>
Sat, 23 Nov 2019 00:26:16 +0000 (16:26 -0800)
- Fixes #337

ui/src/components/post-listing.tsx

index 4d36ac28313557a584843f637575d4d2b979ca66..94cd4d545c0d97a262ac9006244cfc76229a8971 100644 (file)
@@ -125,7 +125,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
             </svg>
           </button>
         </div>
-        {post.url && isImage(post.url) && (
+        {post.url && isImage(post.url) && !post.nsfw && !post.community_nsfw && (
           <span
             title={i18n.t('expand_here')}
             class="pointer"