From 719cc22d4a835a5768d58610163c6dd713d9529e Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sun, 12 Jan 2020 11:14:52 -0500 Subject: [PATCH] re-enable external thumbnails --- ui/component/fileThumbnail/view.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/component/fileThumbnail/view.jsx b/ui/component/fileThumbnail/view.jsx index 38c73b047..d4bea53b9 100644 --- a/ui/component/fileThumbnail/view.jsx +++ b/ui/component/fileThumbnail/view.jsx @@ -20,12 +20,12 @@ class CardMedia extends React.PureComponent { let url; // @if TARGET='web' // Pass image urls through a compression proxy - url = thumbnail || Placeholder; - // url = thumbnail - // ? 'https://ext.thumbnails.lbry.com/400x,q55/' + - // The image server will redirect if we don't remove the double slashes after http(s) - // thumbnail.replace('https://', 'https:/').replace('http://', 'http:/') - // : Placeholder; + // url = thumbnail || Placeholder; + url = thumbnail + ? 'https://ext.thumbnails.lbry.com/400x,q55/' + + // The image server will redirect if we don't remove the double slashes after http(s) + thumbnail.replace('https://', 'https:/').replace('http://', 'http:/') + : Placeholder; // @endif // @if TARGET='app' url = thumbnail || Placeholder;