From ffcbb7613e96b96f1a15963816106ba6c4c42943 Mon Sep 17 00:00:00 2001 From: Andre Vallestero Date: Thu, 7 May 2020 21:30:23 -0400 Subject: [PATCH] Added additional check for pictshare thumbnail --- ui/src/components/post-listing.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 36a1e2828..c1480f79f 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;