fix: fix hack on New + following/tags page
Would never hit the 2nd condition.
This commit is contained in:
parent
94c41655a9
commit
3aa04f278b
1 changed files with 8 additions and 8 deletions
|
@ -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()
|
||||
)}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue