Compare commits

...

2 Commits

Author SHA1 Message Date
Claire
28f6d17ce1
Merge f486d38e88 into 0725afe1a9 2025-11-25 15:05:43 +00:00
Claire
f486d38e88 Fix filters not applying to search results
Fixes #36296
2025-10-03 11:57:28 +02:00
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(