pass related_to flag to related searches

This commit is contained in:
Sean Yesmunt 2019-12-18 17:25:49 -05:00
parent d3401da684
commit aca33d6f08
4 changed files with 6 additions and 6 deletions

View file

@ -127,7 +127,7 @@
"imagesloaded": "^4.1.4", "imagesloaded": "^4.1.4",
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#e78c2a7e9fbacf39f73dd52fa0aa05f970973b98", "lbry-redux": "lbryio/lbry-redux#bd9f1b1b0d2a16eaa9c08483400c9c3085301962",
"lbryinc": "lbryio/lbryinc#1e897d2c9108848637e1915700d3ae8ce176f9f8", "lbryinc": "lbryio/lbryinc#1e897d2c9108848637e1915700d3ae8ce176f9f8",
"lint-staged": "^7.0.2", "lint-staged": "^7.0.2",
"localforage": "^1.7.1", "localforage": "^1.7.1",

View file

@ -8,8 +8,8 @@ const select = (state, props) => ({
isSearching: selectIsSearching(state), isSearching: selectIsSearching(state),
}); });
const perform = dispatch => ({ const perform = (dispatch, ownProps) => ({
search: query => dispatch(doSearch(query, 20, undefined, true)), search: query => dispatch(doSearch(query, 20, undefined, true, { related_to: ownProps.claimId })),
}); });
export default connect( export default connect(

View file

@ -247,7 +247,7 @@ class FilePage extends React.Component<Props> {
</section> </section>
</div> </div>
<div className="grid-area--related"> <div className="grid-area--related">
<RecommendedContent uri={uri} /> <RecommendedContent uri={uri} claimId={claim.claim_id} />
</div> </div>
</div> </div>
</Page> </Page>

View file

@ -7092,9 +7092,9 @@ lazy-val@^1.0.4:
yargs "^13.2.2" yargs "^13.2.2"
zstd-codec "^0.1.1" zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#e78c2a7e9fbacf39f73dd52fa0aa05f970973b98: lbry-redux@lbryio/lbry-redux#bd9f1b1b0d2a16eaa9c08483400c9c3085301962:
version "0.0.1" version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/e78c2a7e9fbacf39f73dd52fa0aa05f970973b98" resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/bd9f1b1b0d2a16eaa9c08483400c9c3085301962"
dependencies: dependencies:
proxy-polyfill "0.1.6" proxy-polyfill "0.1.6"
reselect "^3.0.0" reselect "^3.0.0"