fix: fix hack on New + following/tags page

Would never hit the 2nd condition.
This commit is contained in:
Thomas Zarebczan 2020-01-27 14:38:08 -05:00 committed by Sean Yesmunt
parent 94c41655a9
commit 3aa04f278b

View file

@ -116,20 +116,20 @@ function ClaimListDiscover(props: Props) {
// For more than 20, drop it down to 6 months
// This helps with timeout issues for users that are following a ton of stuff
// https://github.com/lbryio/lbry-sdk/issues/2420
if (options.channel_ids.length > 10 || options.any_tags.length > 10) {
options.release_time = `>${Math.floor(
moment()
.subtract(1, TIME_YEAR)
.startOf('week')
.unix()
)}`;
} else if (options.channel_ids.length > 20 || options.any_tags.length > 20) {
if (options.channel_ids.length > 20 || options.any_tags.length > 20) {
options.release_time = `>${Math.floor(
moment()
.subtract(6, TIME_MONTH)
.startOf('week')
.unix()
)}`;
} else if (options.channel_ids.length > 10 || options.any_tags.length > 10) {
options.release_time = `>${Math.floor(
moment()
.subtract(1, TIME_YEAR)
.startOf('week')
.unix()
)}`;
}
}