Added additional check for pictshare thumbnail

pull/744/head
Andre Vallestero 2020-05-07 21:30:23 -04:00
parent bc8ad12b04
commit ffcbb7613e
1 changed files with 4 additions and 1 deletions

View 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;