fix: claim search

to use channel uri instead of claim id (support for vanity resolution)

I did not test this locally - would need to bring it into an Android build. The --winning parameter is required so that only the winning channel's claims are returned.
This commit is contained in:
Thomas Zarebczan 2019-05-21 16:10:41 -04:00
parent 1fe1f6a188
commit 6ce6a494e4
2 changed files with 2 additions and 6 deletions

4
dist/bundle.es.js vendored
View file

@ -2093,9 +2093,7 @@ function doFetchClaimsByChannel(uri, page = 1) {
data: { uri, page }
});
const { claimId } = parseURI(uri);
lbryProxy.claim_search({ channel_id: claimId, page: page || 1 }).then(result => {
lbryProxy.claim_search({ channel_name: uri, page: page || 1, winning: true }).then(result => {
const { items: claimsInChannel, page: returnedPage } = result;
dispatch({

View file

@ -182,9 +182,7 @@ export function doFetchClaimsByChannel(uri: string, page: number = 1) {
data: { uri, page },
});
const { claimId } = parseURI(uri);
Lbry.claim_search({ channel_id: claimId, page: page || 1 }).then(
Lbry.claim_search({ channel_name: uri, page: page || 1, winning: true }).then(
(result: ClaimSearchResponse) => {
const { items: claimsInChannel, page: returnedPage } = result;