fix: use channel id for search

Lighthouse now has channel id as a param.
This commit is contained in:
Thomas Zarebczan 2019-09-22 12:27:47 -04:00
parent 4f3bdec26e
commit 2f318cbf5e

View file

@ -93,8 +93,8 @@ function ChannelPage(props: Props) {
}
function handleSearch() {
const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel=${encodeURIComponent(
claim.permanent_url.slice('lbry://'.length)
const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel_id=${encodeURIComponent(
claim.claim_id
)}`;
fetch(fetchUrl)
.then(res => res.json())