From e7adc607faa418ee78f1bbff6cca9904e9039323 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Tue, 23 Feb 2021 11:58:16 +0800 Subject: [PATCH] Revert "use cdn for channel thumbnails" This reverts commit b231b1a51f98cd72326ca79f2b7ec12c1a04f398. ## Issue 5564: Don't use optimized URLs on channel pages (profile/banner) --- ui/component/channelThumbnail/view.jsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/component/channelThumbnail/view.jsx b/ui/component/channelThumbnail/view.jsx index 129565416..d3af5c508 100644 --- a/ui/component/channelThumbnail/view.jsx +++ b/ui/component/channelThumbnail/view.jsx @@ -5,7 +5,6 @@ import classnames from 'classnames'; import Gerbil from './gerbil.png'; import FreezeframeWrapper from 'component/fileThumbnail/FreezeframeWrapper'; import ChannelStakedIndicator from 'component/channelStakedIndicator'; -import { getThumbnailCdnUrl } from 'util/thumbnail'; type Props = { thumbnail: ?string, @@ -68,14 +67,6 @@ function ChannelThumbnail(props: Props) { ); } - let url = channelThumbnail; - // @if TARGET='web' - // Pass image urls through a compression proxy - if (thumbnail) { - url = getThumbnailCdnUrl({ thumbnail }); - } - // @endif - return (
setThumbError(true)} // if thumb fails (including due to https replace, show gerbil. /> )} @@ -100,7 +91,7 @@ function ChannelThumbnail(props: Props) { {__('Channel setThumbError(true)} // if thumb fails (including due to https replace, show gerbil. /> )}