diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-09 17:17:24 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-09 17:17:24 -0400 |
commit | bd26e4e9c1b146163ee839de0a45bb9354efd1f2 (patch) | |
tree | 0c30425a32666f7597fb1d9362edcf199dc75a7d /ui/src/components/post-listing.tsx | |
parent | e583e45d9a2221b3ed2a743cfa172abcd2a1d6a0 (diff) |
Fixing some front end pictshare to pictrs conversions.
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r-- | ui/src/components/post-listing.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 36a1e282..7d10acf7 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -28,7 +28,7 @@ import { isImage, isVideo, getUnixTime, - pictshareImage, + pictrsImage, setupTippy, previewLines, } from '../utils'; @@ -161,15 +161,15 @@ export class PostListing extends Component<PostListingProps, PostListingState> { getImage(thumbnail: boolean = false) { let post = this.props.post; if (isImage(post.url)) { - if (post.url.includes('pictshare')) { - return pictshareImage(post.url, thumbnail); + if (post.url.includes('pictrs')) { + return pictrsImage(post.url, thumbnail); } else if (post.thumbnail_url) { - return pictshareImage(post.thumbnail_url, thumbnail); + return pictrsImage(post.thumbnail_url, thumbnail); } else { return post.url; } } else if (post.thumbnail_url) { - return pictshareImage(post.thumbnail_url, thumbnail); + return pictrsImage(post.thumbnail_url, thumbnail); } } |