[Glitch] Add message telling FTS is disabled when no toot can be found because of this

Port ca8944728f to glitch-soc
This commit is contained in:
ThibG
2019-06-27 21:12:26 +02:00
committed by Thibaut Girka
parent c8ba75b963
commit 43698e08ca
5 changed files with 25 additions and 7 deletions

View File

@ -16,6 +16,7 @@ const initialState = ImmutableMap({
submitted: false,
hidden: false,
results: ImmutableMap(),
searchTerm: '',
});
export default function search(state = initialState, action) {
@ -40,7 +41,7 @@ export default function search(state = initialState, action) {
accounts: ImmutableList(action.results.accounts.map(item => item.id)),
statuses: ImmutableList(action.results.statuses.map(item => item.id)),
hashtags: fromJS(action.results.hashtags),
})).set('submitted', true);
})).set('submitted', true).set('searchTerm', action.searchTerm);
default:
return state;
}