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 df0f35b commit d9e9f47
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 @@ -70,7 +70,7 @@ export default function search(state = initialState, action) {
map.set('isLoading', false);
});
case SEARCH_EXPAND_REQUEST:
return state.set('type', action.searchType).set('isLoading', true);
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)).set('isLoading', false);
Expand Down

0 comments on commit d9e9f47

Please sign in to comment.