diff --git a/ui/component/channelThumbnail/view.jsx b/ui/component/channelThumbnail/view.jsx index d3af5c508..129565416 100644 --- a/ui/component/channelThumbnail/view.jsx +++ b/ui/component/channelThumbnail/view.jsx @@ -5,6 +5,7 @@ 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, @@ -67,6 +68,14 @@ 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. /> )} @@ -91,7 +100,7 @@ function ChannelThumbnail(props: Props) { {__('Channel setThumbError(true)} // if thumb fails (including due to https replace, show gerbil. /> )}