[Glitch] Fix follow request notifications

Port 3678b10823 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
master
ThibG 4 years ago committed by Thibaut Girka
parent 9c34090db8
commit ddbb9f0ec4
  1. 20
      app/javascript/flavours/glitch/reducers/user_lists.js

@ -53,14 +53,20 @@ import {
} from 'flavours/glitch/actions/directory'; } from 'flavours/glitch/actions/directory';
import { Map as ImmutableMap, List as ImmutableList } from 'immutable'; import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
const initialListState = ImmutableMap({
next: null,
isLoading: false,
items: ImmutableList(),
});
const initialState = ImmutableMap({ const initialState = ImmutableMap({
followers: ImmutableMap(), followers: initialListState,
following: ImmutableMap(), following: initialListState,
reblogged_by: ImmutableMap(), reblogged_by: initialListState,
favourited_by: ImmutableMap(), favourited_by: initialListState,
follow_requests: ImmutableMap(), follow_requests: initialListState,
blocks: ImmutableMap(), blocks: initialListState,
mutes: ImmutableMap(), mutes: initialListState,
}); });
const normalizeList = (state, path, accounts, next) => { const normalizeList = (state, path, accounts, next) => {

Loading…
Cancel
Save