We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b7f1c commit 9b19503Copy full SHA for 9b19503
1 file changed
app/javascript/mastodon/reducers/search.js
@@ -44,7 +44,8 @@ export default function search(state = initialState, action) {
44
hashtags: fromJS(action.results.hashtags),
45
})).set('submitted', true).set('searchTerm', action.searchTerm);
46
case SEARCH_EXPAND_SUCCESS:
47
- return state.updateIn(['results', action.searchType], list => list.concat(action.results[action.searchType].map(item => item.id)));
+ const results = action.searchType === 'hashtags' ? fromJS(action.results.hashtags) : action.results[action.searchType].map(item => item.id);
48
+ return state.updateIn(['results', action.searchType], list => list.concat(results));
49
default:
50
return state;
51
}
0 commit comments