parent
f7279c1d49
commit
d257c312c1
3 changed files with 1 additions and 10 deletions
|
@ -14,7 +14,6 @@ WELCOME_VERSION=1.0
|
|||
# Custom Site info
|
||||
DOMAIN=lbry.tv
|
||||
URL=https://lbry.tv
|
||||
THUMBNAIL_CDN_URL=https://cached-proxy.vanwanet.com/?url=
|
||||
|
||||
# UI
|
||||
SITE_TITLE=lbry.tv
|
||||
|
|
|
@ -16,7 +16,6 @@ const config = {
|
|||
DOMAIN: process.env.DOMAIN,
|
||||
SHARE_DOMAIN_URL: process.env.SHARE_DOMAIN_URL,
|
||||
URL: process.env.URL,
|
||||
THUMBNAIL_CDN_URL: process.env.THUMBNAIL_CDN_URL,
|
||||
SITE_TITLE: process.env.SITE_TITLE,
|
||||
SITE_NAME: process.env.SITE_NAME,
|
||||
SITE_DESCRIPTION: process.env.SITE_DESCRIPTION,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// @flow
|
||||
import type { Node } from 'react';
|
||||
import { THUMBNAIL_CDN_URL } from 'config';
|
||||
import React from 'react';
|
||||
import FreezeframeWrapper from './FreezeframeWrapper';
|
||||
import Placeholder from './placeholder.png';
|
||||
|
@ -38,13 +37,7 @@ function FileThumbnail(props: Props) {
|
|||
);
|
||||
}
|
||||
|
||||
let url = thumbnail || (hasResolvedClaim ? Placeholder : '');
|
||||
// @if TARGET='web'
|
||||
// Pass image urls through a compression proxy
|
||||
if (thumbnail && !thumbnail.includes('https://spee.ch')) {
|
||||
url = `${THUMBNAIL_CDN_URL}${encodeURIComponent(thumbnail)}`;
|
||||
}
|
||||
// @endif
|
||||
const url = thumbnail || (hasResolvedClaim ? Placeholder : '');
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue