From: Andre Vallestero Date: Fri, 8 May 2020 01:30:23 +0000 (-0400) Subject: Added additional check for pictshare thumbnail X-Git-Url: http://these/git/%22https:/nerdica.net/%7Biframely.url%7D?a=commitdiff_plain;h=ffcbb7613e96b96f1a15963816106ba6c4c42943;p=lemmy.git Added additional check for pictshare thumbnail --- diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 36a1e282..c1480f79 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -163,7 +163,10 @@ export class PostListing extends Component { 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;