]> cat aescling's git repositories - mastodon.git/commitdiff
Fix follow request notifications (#15048)
authorThibG <thib@sitedethib.com>
Mon, 26 Oct 2020 14:41:28 +0000 (15:41 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 14:41:28 +0000 (15:41 +0100)
app/javascript/mastodon/reducers/user_lists.js

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