mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 07:51:31 +00:00
default claim_type to "stream", "channel", and "repost"
This commit is contained in:
parent
26168670dd
commit
565cbb2502
1 changed files with 3 additions and 2 deletions
|
@ -52,7 +52,7 @@ type Props = {
|
||||||
headerLabel?: string | Node,
|
headerLabel?: string | Node,
|
||||||
name?: string,
|
name?: string,
|
||||||
pageSize?: number,
|
pageSize?: number,
|
||||||
claimType?: string | Array<string>,
|
claimType?: Array<string>,
|
||||||
renderProperties?: Claim => Node,
|
renderProperties?: Claim => Node,
|
||||||
includeSupportAction?: boolean,
|
includeSupportAction?: boolean,
|
||||||
hideBlock: boolean,
|
hideBlock: boolean,
|
||||||
|
@ -110,6 +110,7 @@ function ClaimListDiscover(props: Props) {
|
||||||
page_size: pageSize || PAGE_SIZE,
|
page_size: pageSize || PAGE_SIZE,
|
||||||
page,
|
page,
|
||||||
name,
|
name,
|
||||||
|
claim_type: claimType || ['stream', 'channel', 'repost'],
|
||||||
// no_totals makes it so the sdk doesn't have to calculate total number pages for pagination
|
// no_totals makes it so the sdk doesn't have to calculate total number pages for pagination
|
||||||
// it's faster, but we will need to remove it if we start using total_pages
|
// it's faster, but we will need to remove it if we start using total_pages
|
||||||
no_totals: true,
|
no_totals: true,
|
||||||
|
@ -166,7 +167,7 @@ function ClaimListDiscover(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!showReposts) {
|
if (!showReposts) {
|
||||||
options.claim_type = 'stream';
|
options.claim_type = options.claim_type.filter(claimType => claimType !== 'repost');
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasMatureTags = tags && tags.some(t => MATURE_TAGS.includes(t));
|
const hasMatureTags = tags && tags.some(t => MATURE_TAGS.includes(t));
|
||||||
|
|
Loading…
Add table
Reference in a new issue