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/%7B%24%7B%60data:application/static/%24%7B%60data:application/%7BallRss%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;