]> Untitled Git - lemmy.git/commitdiff
Added additional check for pictshare thumbnail
authorAndre Vallestero <andrevallestero@gmail.com>
Fri, 8 May 2020 01:30:23 +0000 (21:30 -0400)
committerAndre Vallestero <andrevallestero@gmail.com>
Fri, 8 May 2020 01:30:23 +0000 (21:30 -0400)
ui/src/components/post-listing.tsx

index 36a1e2828dc2dd3aab20182b6fb390ede30ebd4d..c1480f79f15bfc1d5869f5c88e87b0a6c1d4260f 100644 (file)
@@ -163,7 +163,10 @@ 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) {
+      } else if (
+        post.thumbnail_url &&
+        post.thumbnail_url.includes('pictshare')
+      ) {
         return pictshareImage(post.thumbnail_url, thumbnail);
       } else {
         return post.url;