mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Fix “Filter this post” potentially listing deleted filters (#19051)
This commit is contained in:
parent
63adef2021
commit
2cae5f5b8d
@ -35,7 +35,7 @@ export default function filters(state = ImmutableMap(), action) {
|
|||||||
case FILTERS_CREATE_SUCCESS:
|
case FILTERS_CREATE_SUCCESS:
|
||||||
return normalizeFilter(state, action.filter);
|
return normalizeFilter(state, action.filter);
|
||||||
case FILTERS_FETCH_SUCCESS:
|
case FILTERS_FETCH_SUCCESS:
|
||||||
//TODO: handle deleting obsolete filters
|
return normalizeFilters(ImmutableMap(), action.filters);
|
||||||
case FILTERS_IMPORT:
|
case FILTERS_IMPORT:
|
||||||
return normalizeFilters(state, action.filters);
|
return normalizeFilters(state, action.filters);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user