]> Untitled Git - lemmy.git/commitdiff
Removed redundant erroneous check
authorAndre Vallestero <andrevallestero@gmail.com>
Mon, 11 May 2020 15:29:35 +0000 (11:29 -0400)
committerAndre Vallestero <andrevallestero@gmail.com>
Mon, 11 May 2020 15:29:35 +0000 (11:29 -0400)
ui/src/components/post-listing.tsx

index c1480f79f15bfc1d5869f5c88e87b0a6c1d4260f..36a1e2828dc2dd3aab20182b6fb390ede30ebd4d 100644 (file)
@@ -163,10 +163,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     if (isImage(post.url)) {
       if (post.url.includes('pictshare')) {
         return pictshareImage(post.url, thumbnail);
-      } else if (
-        post.thumbnail_url &&
-        post.thumbnail_url.includes('pictshare')
-      ) {
+      } else if (post.thumbnail_url) {
         return pictshareImage(post.thumbnail_url, thumbnail);
       } else {
         return post.url;