diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-29 02:01:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 02:01:24 +0200 |
commit | 8bb74e50beb3e6602c183e59086ccebe87f96fb2 (patch) | |
tree | cec5f848686a777a5318ed51cf9b7560414cc527 /app/javascript/mastodon/reducers/search.js | |
parent | 90b64c006998ec3bae365007781c61e8a79eeeef (diff) |
Add GET /api/v2/search which returns rich tag objects, adjust web UI (#7661)
Diffstat (limited to 'app/javascript/mastodon/reducers/search.js')
-rw-r--r-- | app/javascript/mastodon/reducers/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/reducers/search.js b/app/javascript/mastodon/reducers/search.js index 56fd7226b..4758defb1 100644 --- a/app/javascript/mastodon/reducers/search.js +++ b/app/javascript/mastodon/reducers/search.js @@ -9,7 +9,7 @@ import { COMPOSE_REPLY, COMPOSE_DIRECT, } from '../actions/compose'; -import { Map as ImmutableMap, List as ImmutableList } from 'immutable'; +import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable'; const initialState = ImmutableMap({ value: '', @@ -39,7 +39,7 @@ export default function search(state = initialState, action) { return state.set('results', ImmutableMap({ accounts: ImmutableList(action.results.accounts.map(item => item.id)), statuses: ImmutableList(action.results.statuses.map(item => item.id)), - hashtags: ImmutableList(action.results.hashtags), + hashtags: fromJS(action.results.hashtags), })).set('submitted', true); default: return state; |