From f4cf36a87f651eff13fcffcac57a94a0416b8c4c Mon Sep 17 00:00:00 2001 From: David Garrett Date: Mon, 21 Nov 2022 19:16:21 -0500 Subject: [PATCH] Update --- .vs/lbry-desktop/v17/.wsuo | Bin 22528 -> 27136 bytes ui/component/claimListDiscover/view.jsx | 29 ++++++++++++------------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.vs/lbry-desktop/v17/.wsuo b/.vs/lbry-desktop/v17/.wsuo index af626fd2835fa618c01b37ced1145376f4f087bb..8b555ac990b4a8bbc387f079c7bc4d5fd4e08325 100644 GIT binary patch delta 1229 zcmb7@OH30{6o%(chtd|It$^WCq&xx$Ew%-0k%vVaQ)6t0s&zvQZ7B#*K`0Lq>G&Wf z#u%6r7rJo4#)S)o#)Z2Y-K&Wvu3Wox0WoS~{V%qJNMhnmzMTI&=FEL6&zbUpEjz42 zZkPli4_XAjGMNkyGqBeGj8TT2V*Ba6Xe}J+d7S_26WfQ3QbY6N33_dDvL)IS16)x; z6VwY5vb-1FuWQmKAwrCPXeul&NVMJ>dgy|zUjn<*U!oeMLY^yyTMW!})=(`S*h<>! zZLmD+gtdcKa1b~^3upu6XnD6Xcwt?;ke?ic9|2Ji14AGVhQSE90LH->;0wM8dkI|5 z`V+8Mz$BOg2`~+K?JVpZxC-XMHNfLL$jc}Qt{3?w^4n}|k*14+I=;C^z&D0nr%i-Y{Da)Ax&8S;Dlv|KZ>UUp2R z*CNiNBDiHY95TJJI4DsW)U!f-f#cqq25mSkDO1H)z1r^6X%O6#OC(Gv)xoRCM%V&v zngV)efnT*X z7G7mGLWwR}R|bdQD_)X!5<*Mgd+yXXLGg>o_s;(GbMwc$pYne`=swza^+nYe!$Rjb zXsQt{sdTT`NZwv=%G;YRT@NVC@d%fU|Fpi-9qow6JRZC2kSAhqkGo>_Xe2&tA9lN= zE|(`d6p1@UVT~dU)$}&#Tn&q{Zi#8=eW_gyD{8|5t#5QHHa*ZwN<1v zq(x^Rc^i-J%stEXp=8KIviyo(HWsn%?uhPc#eZ9=h8lOYku-wuf4`ygAp?^s*ned2 zpSi{-2WCd&v#n!ObB$yU?JM3D{%3h^I{woEa|b_!>^KFjr6;FdqVMm;CR5&8h0$Bt zOG?hg`2K*VX4O$tc&v}hg ZczHWp6x5cJa!#S{x>^!@4^g@){TrygUZ?;7 delta 579 zcmZ`$O-sW-5befox~*-R^dr_-B`Q=c)duvaSZvio#ik&No;(SH2M-l06saQUL8NB> zL4ScJ2wsF9Jb2fiQV)7C&Po(7E${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())}`; + } } }