about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-06 12:20:17 +0100
committerGitHub <noreply@github.com>2019-03-06 12:20:17 +0100
commitfefacb7b7a21fc4aa40cb18ac797ecb5c44627f6 (patch)
tree7c4dbacf4603fd834da1bf8645b894634da06d4f /app/javascript/flavours/glitch/reducers
parente80fabfd84c1e2d157ca1cd536f68f3c75f011c1 (diff)
parent94a0149ff3e455792050e790d397d1d4d2c2d851 (diff)
Merge pull request #939 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r--app/javascript/flavours/glitch/reducers/polls.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/reducers/polls.js b/app/javascript/flavours/glitch/reducers/polls.js
index 53d9b1d8c..9956cf83f 100644
--- a/app/javascript/flavours/glitch/reducers/polls.js
+++ b/app/javascript/flavours/glitch/reducers/polls.js
@@ -1,4 +1,3 @@
-import { POLL_VOTE_SUCCESS, POLL_FETCH_SUCCESS } from 'mastodon/actions/polls';
 import { POLLS_IMPORT } from 'mastodon/actions/importer';
 import { Map as ImmutableMap, fromJS } from 'immutable';
 
@@ -10,9 +9,6 @@ export default function polls(state = initialState, action) {
   switch(action.type) {
   case POLLS_IMPORT:
     return importPolls(state, action.polls);
-  case POLL_VOTE_SUCCESS:
-  case POLL_FETCH_SUCCESS:
-    return importPolls(state, [action.poll]);
   default:
     return state;
   }