diff --git a/.vs/lbry-desktop/v17/.wsuo b/.vs/lbry-desktop/v17/.wsuo index af626fd28..8b555ac99 100644 Binary files a/.vs/lbry-desktop/v17/.wsuo and b/.vs/lbry-desktop/v17/.wsuo differ diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index 496a02019..a53f0c2fc 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -318,21 +318,20 @@ function ClaimListDiscover(props: Props) { if (orderParam === CS.ORDER_BY_TOP && freshnessParam !== CS.FRESH_ALL) { options.release_time = `>${Math.floor(moment().subtract(1, freshnessParam).startOf('hour').unix())}`; } else if (orderParam === CS.ORDER_BY_NEW || orderParam === CS.ORDER_BY_TRENDING) { - // UPDATE: Commented out these lines of code to truly sort by oldest first... - //if ( - // (options.channel_ids && options.channel_ids.length > 20) || - // (options.any_tags && options.any_tags.length > 20) - //) { - // options.release_time = `>${Math.floor(moment().subtract(3, CS.FRESH_MONTH).startOf('week').unix())}`; - //} else if ( - // (options.channel_ids && options.channel_ids.length > 10) || - // (options.any_tags && options.any_tags.length > 10) - //) { - // options.release_time = `>${Math.floor(moment().subtract(1, CS.FRESH_YEAR).startOf('week').unix())}`; - //} else { - // // Hack for at least the New page until https://github.com/lbryio/lbry-sdk/issues/2591 is fixed - // options.release_time = `<${Math.floor(moment().startOf('minute').unix())}`; - //} + if ( + (options.channel_ids && options.channel_ids.length > 20) || + (options.any_tags && options.any_tags.length > 20) + ) { + options.release_time = `>${Math.floor(moment().subtract(3, CS.FRESH_MONTH).startOf('week').unix())}`; + } else if ( + (options.channel_ids && options.channel_ids.length > 10) || + (options.any_tags && options.any_tags.length > 10) + ) { + options.release_time = `>${Math.floor(moment().subtract(1, CS.FRESH_YEAR).startOf('week').unix())}`; + } else { + // Hack for at least the New page until https://github.com/lbryio/lbry-sdk/issues/2591 is fixed + options.release_time = `<${Math.floor(moment().startOf('minute').unix())}`; + } } }