Skip to content

Commit

Permalink
Fix original mastodon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 19, 2023
1 parent 80fadeb commit dc6ad38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/reducers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function search(state = initialState, action) {
map.set('isLoading', false);
});
case SEARCH_EXPAND_REQUEST:
return state.set('type', action.searchType);
return state.set('type', action.searchType); // .set('isLoading', true); // original Mastodon bug
case SEARCH_EXPAND_SUCCESS:
const results = action.searchType === 'hashtags' ? ImmutableOrderedSet(fromJS(action.results.hashtags)) : action.results[action.searchType].map(item => item.id);
return state.updateIn(['results', action.searchType], list => list.union(results)).setIn(['noMoreResults', action.searchType], results.size <= 0);
Expand Down

0 comments on commit dc6ad38

Please sign in to comment.