]> cat aescling's git repositories - mastodon.git/commitdiff
Insert polls in redux stores before statuses so it avoids crashes (#10140)
authorThibG <thib@sitedethib.com>
Sun, 3 Mar 2019 22:44:52 +0000 (23:44 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 3 Mar 2019 22:44:52 +0000 (23:44 +0100)
app/javascript/mastodon/actions/importer/index.js

index 13ad5d1e11d5b44472380fd3e0ca5eecd697cdc3..abadee8173fa849555e55f2f77469b2535432f33 100644 (file)
@@ -77,8 +77,8 @@ export function importFetchedStatuses(statuses) {
 
     statuses.forEach(processStatus);
 
+    dispatch(importPolls(polls));
     dispatch(importFetchedAccounts(accounts));
     dispatch(importStatuses(normalStatuses));
-    dispatch(importPolls(polls));
   };
 }