[Glitch] Fix filters not applying to search results

Port 44ff2c32d3 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2025-11-27 17:23:11 +01:00
parent 9ede21cbe2
commit 7bc48f2833
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ const renderHashtags = (hashtags: HashtagType[]) =>
const renderStatuses = (statusIds: string[]) =>
hidePeek<string>(statusIds).map((id) => (
<StatusQuoteManager key={id} id={id} />
<StatusQuoteManager contextType='search' key={id} id={id} />
));
type SearchType = 'all' | ApiSearchType;
@@ -189,7 +189,7 @@ export const SearchResults: React.FC<{ multiColumn: boolean }> = ({
onClickMore={handleSelectStatuses}
>
{results.statuses.slice(0, INITIAL_DISPLAY).map((id) => (
<StatusQuoteManager key={id} id={id} />
<StatusQuoteManager contextType='search' key={id} id={id} />
))}
</SearchSection>
)}

View File

@@ -14,7 +14,7 @@ const getStatusInputSelectors = [
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', id, 'account'])]),
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', state.getIn(['statuses', id, 'reblog']), 'account'])]),
getFilters,
(_, { contextType }) => ['detailed', 'bookmarks', 'favourites'].includes(contextType),
(_, { contextType }) => ['detailed', 'bookmarks', 'favourites', 'search'].includes(contextType),
];
function getStatusResultFunction(