disable repost setting
This commit is contained in:
parent
98e0e57de7
commit
0e1e67cb9d
3 changed files with 19 additions and 16 deletions
|
@ -203,13 +203,14 @@ function ClaimListDiscover(props: Props) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!showReposts) {
|
||||
if (Array.isArray(options.claim_type)) {
|
||||
options.claim_type = options.claim_type.filter(claimType => claimType !== 'repost');
|
||||
} else {
|
||||
options.claim_type = ['stream', 'channel'];
|
||||
}
|
||||
}
|
||||
// https://github.com/lbryio/lbry-desktop/issues/3774
|
||||
// if (!showReposts) {
|
||||
// if (Array.isArray(options.claim_type)) {
|
||||
// options.claim_type = options.claim_type.filter(claimType => claimType !== 'repost');
|
||||
// } else {
|
||||
// options.claim_type = ['stream', 'channel'];
|
||||
// }
|
||||
// }
|
||||
|
||||
const hasMatureTags = tags && tags.some(t => MATURE_TAGS.includes(t));
|
||||
const claimSearchCacheQuery = createNormalizedClaimSearchKey(options);
|
||||
|
|
|
@ -76,13 +76,14 @@ function ClaimTilesDiscover(props: Props) {
|
|||
options.release_time = releaseTime;
|
||||
}
|
||||
|
||||
if (!showReposts) {
|
||||
if (Array.isArray(options.claim_type)) {
|
||||
options.claim_type = options.claim_type.filter(claimType => claimType !== 'repost');
|
||||
} else {
|
||||
options.claim_type = ['stream', 'channel'];
|
||||
}
|
||||
}
|
||||
// https://github.com/lbryio/lbry-desktop/issues/3774
|
||||
// if (!showReposts) {
|
||||
// if (Array.isArray(options.claim_type)) {
|
||||
// options.claim_type = options.claim_type.filter(claimType => claimType !== 'repost');
|
||||
// } else {
|
||||
// options.claim_type = ['stream', 'channel'];
|
||||
// }
|
||||
// }
|
||||
|
||||
if (claimType) {
|
||||
options.claim_type = claimType;
|
||||
|
|
|
@ -399,7 +399,8 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
)}
|
||||
/>
|
||||
|
||||
<FormField
|
||||
{/* https://github.com/lbryio/lbry-desktop/issues/3774 */}
|
||||
{/* <FormField
|
||||
type="checkbox"
|
||||
name="show_reposts"
|
||||
onChange={() => {
|
||||
|
@ -408,7 +409,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
checked={showReposts}
|
||||
label={__('Show reposts')}
|
||||
helper={__('Show reposts from the creators you follow.')}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
{/* <FormField
|
||||
type="checkbox"
|
||||
|
|
Loading…
Add table
Reference in a new issue