This commit is contained in:
jessop 2020-01-29 14:20:59 -05:00
parent d8c65c5bd3
commit 71e85536db

10
dist/bundle.es.js vendored
View file

@ -2220,7 +2220,7 @@ claim => {
return isClaimNsfw(claim); return isClaimNsfw(claim);
}); });
const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), selectSearchUrisByQuery, (claim, searchUrisByQuery) => { const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), selectSearchUrisByQuery, makeSelectClaimIsNsfw(uri), (claim, searchUrisByQuery, isMature) => {
const atVanityURI = !uri.includes('#'); const atVanityURI = !uri.includes('#');
let recommendedContent; let recommendedContent;
@ -2234,9 +2234,11 @@ const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSe
return; return;
} }
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, { const options = { related_to: claim.claim_id };
related_to: claim.claim_id if (!isMature) {
}); options['nsfw'] = false;
}
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, options);
let searchUris = searchUrisByQuery[searchQuery]; let searchUris = searchUrisByQuery[searchQuery];
if (searchUris) { if (searchUris) {