fix: vanity channels not loading content
This commit is contained in:
parent
4b0aa15d01
commit
b6529ff58c
2 changed files with 7 additions and 5 deletions
|
@ -185,7 +185,7 @@
|
|||
"yarn": "^1.3"
|
||||
},
|
||||
"lbrySettings": {
|
||||
"lbrynetDaemonVersion": "0.36.0",
|
||||
"lbrynetDaemonVersion": "0.37.0rc3",
|
||||
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
|
||||
"lbrynetDaemonDir": "static/daemon",
|
||||
"lbrynetDaemonFileName": "lbrynet"
|
||||
|
|
|
@ -302,11 +302,13 @@ export function doFetchClaimsByChannel(
|
|||
data: { uri, page },
|
||||
});
|
||||
|
||||
// TODO: can we keep uri?
|
||||
// claim_search should accept a uri (this allows for fetching vanity channel content)
|
||||
const { claimId } = parseURI(uri);
|
||||
const { claimName, claimId } = parseURI(uri);
|
||||
let channelName = claimName;
|
||||
if (claimId) {
|
||||
channelName += `#${claimId}`;
|
||||
}
|
||||
|
||||
Lbry.claim_search({ channel_id: claimId, page, page_size: pageSize }).then(result => {
|
||||
Lbry.claim_search({ channel_name: channelName, page, page_size: pageSize }).then(result => {
|
||||
const { items: claimsInChannel, page: returnedPage } = result;
|
||||
|
||||
if (claimsInChannel && claimsInChannel.length) {
|
||||
|
|
Loading…
Reference in a new issue