include claim_id in channel search
This commit is contained in:
parent
bc91d720e4
commit
efd0ac0645
1 changed files with 2 additions and 1 deletions
|
@ -63,6 +63,7 @@ function ChannelPage(props: Props) {
|
||||||
openModal,
|
openModal,
|
||||||
supportOption,
|
supportOption,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const { channelName } = parseURI(uri);
|
const { channelName } = parseURI(uri);
|
||||||
const { search } = location;
|
const { search } = location;
|
||||||
const urlParams = new URLSearchParams(search);
|
const urlParams = new URLSearchParams(search);
|
||||||
|
@ -93,7 +94,7 @@ function ChannelPage(props: Props) {
|
||||||
|
|
||||||
function handleSearch() {
|
function handleSearch() {
|
||||||
const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel=${encodeURIComponent(
|
const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel=${encodeURIComponent(
|
||||||
uri.slice('lbry://'.length)
|
claim.permanent_url.slice('lbry://'.length)
|
||||||
)}`;
|
)}`;
|
||||||
fetch(fetchUrl)
|
fetch(fetchUrl)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
|
|
Loading…
Add table
Reference in a new issue