diff --git a/.env.defaults b/.env.defaults index a1a671028..b194fae90 100644 --- a/.env.defaults +++ b/.env.defaults @@ -27,6 +27,10 @@ SIMPLE_SITE=false SHOW_ADS=true YRBL_HAPPY_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a YRBL_SAD_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd +#FAVICON=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd +#LOGO=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd +#LOGO_TEXT_LIGHT=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd +#LOGO_TEXT_DARK=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd ENABLE_COMMENT_REACTIONS=true ENABLE_FILE_REACTIONS=false diff --git a/config.js b/config.js index d1cd84164..4c3ee2f9d 100644 --- a/config.js +++ b/config.js @@ -22,10 +22,17 @@ const config = { SITE_NAME: process.env.SITE_NAME, SITE_DESCRIPTION: process.env.SITE_DESCRIPTION, SITE_HELP_EMAIL: process.env.SITE_HELP_EMAIL, + // LOGO LOGO_TITLE: process.env.LOGO_TITLE, + FAVICON: process.env.FAVICON, + LOGO_URL: process.env.LOGO_URL, + LOGO_TEXT_LIGHT_URL: process.env.LOGO_TEXT_LIGHT_URL, + LOGO_TEXT_DARK_URL: process.env.LOGO_TEXT_DARK_URL, + // OG OG_TITLE_SUFFIX: process.env.OG_TITLE_SUFFIX, OG_HOMEPAGE_TITLE: process.env.OG_HOMEPAGE_TITLE, OG_IMAGE_URL: process.env.OG_IMAGE_URL, + // MASCOT YRBL_HAPPY_IMG_URL: process.env.YRBL_HAPPY_IMG_URL, YRBL_SAD_IMG_URL: process.env.YRBL_SAD_IMG_URL, LOGIN_IMG_URL: process.env.LOGIN_IMG_URL, @@ -33,6 +40,8 @@ const config = { DEFAULT_LANGUAGE: process.env.DEFAULT_LANGUAGE, AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS, UNSYNCED_SETTINGS: process.env.UNSYNCED_SETTINGS, + + // ENABLE FEATURES ENABLE_COMMENT_REACTIONS: process.env.ENABLE_COMMENT_REACTIONS === 'true', ENABLE_FILE_REACTIONS: process.env.ENABLE_FILE_REACTIONS === 'true', ENABLE_CREATOR_REACTIONS: process.env.ENABLE_CREATOR_REACTIONS === 'true', diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index ec546cec6..ae3068c9a 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -361,9 +361,25 @@ function ClaimListDiscover(props: Props) { const hasMatureTags = tagsParam && tagsParam.split(',').some((t) => MATURE_TAGS.includes(t)); const claimSearchCacheQuery = createNormalizedClaimSearchKey(options); - const claimSearchResult = claimSearchByQuery[claimSearchCacheQuery]; + let claimSearchResult = claimSearchByQuery[claimSearchCacheQuery]; const claimSearchResultLastPageReached = claimSearchByQueryLastPageReached[claimSearchCacheQuery]; + // uncomment to fix an item on a page + // const fixUri = 'lbry://@corbettreport#0/lbryodysee#5'; + // if ( + // orderParam === CS.ORDER_BY_NEW && + // claimSearchResult && + // claimSearchResult.length > 2 && + // window.location.pathname === '/$/rabbithole' + // ) { + // if (claimSearchResult.indexOf(fixUri) !== -1) { + // claimSearchResult.splice(claimSearchResult.indexOf(fixUri), 1); + // } else { + // claimSearchResult.pop(); + // } + // claimSearchResult.splice(2, 0, fixUri); + // } + const [prevOptions, setPrevOptions] = React.useState(null); if (!isJustScrollingToNewPage(prevOptions, options)) {