mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-28 19:00:31 +00:00
Added additional check for pictshare thumbnail
This commit is contained in:
parent
bc8ad12b04
commit
ffcbb7613e
1 changed files with 4 additions and 1 deletions
5
ui/src/components/post-listing.tsx
vendored
5
ui/src/components/post-listing.tsx
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue