Revert "Fix nsfw parameter in search page"
This reverts commit 4f1bd23442
.
This commit is contained in:
parent
148fa4f4cd
commit
65709e1139
2 changed files with 6 additions and 3 deletions
|
@ -46,8 +46,9 @@ export default function SearchPage(props: Props) {
|
|||
const urlParams = new URLSearchParams(location.search);
|
||||
const urlQuery = urlParams.get('q') || '';
|
||||
const additionalOptions: AdditionalOptions = { isBackgroundSearch: false };
|
||||
|
||||
additionalOptions['nsfw'] = showNsfw;
|
||||
if (!showNsfw) {
|
||||
additionalOptions['nsfw'] = false;
|
||||
}
|
||||
|
||||
const modifiedUrlQuery = urlQuery
|
||||
.trim()
|
||||
|
|
|
@ -77,7 +77,9 @@ export const makeSelectRecommendedContentForUri = (uri: string) =>
|
|||
isBackgroundSearch?: boolean,
|
||||
} = { related_to: claim.claim_id, isBackgroundSearch: true };
|
||||
|
||||
options['nsfw'] = isMature;
|
||||
if (!isMature) {
|
||||
options['nsfw'] = false;
|
||||
}
|
||||
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), options);
|
||||
|
||||
let searchUris = searchUrisByQuery[searchQuery];
|
||||
|
|
Loading…
Add table
Reference in a new issue