about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/importer/index.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-06 05:35:52 +0100
committerGitHub <noreply@github.com>2019-03-06 05:35:52 +0100
commitfd128b9c7aa5c71adbfc2e223212514c0baee675 (patch)
treef88c6d60286250b7d77c1f545330eda2849cdd04 /app/javascript/mastodon/actions/importer/index.js
parent57643557b64bc1853c4aeb65fc652dac3467fa18 (diff)
Fix poll options not rendering text after vote/refresh (#10189)
* Fix poll options not rendering text after vote/refresh

* Fix poll options not showing up on public pages

* Fix code style issue
Diffstat (limited to 'app/javascript/mastodon/actions/importer/index.js')
-rw-r--r--app/javascript/mastodon/actions/importer/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/importer/index.js b/app/javascript/mastodon/actions/importer/index.js
index e990dc04c..f4372fb31 100644
--- a/app/javascript/mastodon/actions/importer/index.js
+++ b/app/javascript/mastodon/actions/importer/index.js
@@ -82,3 +82,9 @@ export function importFetchedStatuses(statuses) {
     dispatch(importStatuses(normalStatuses));
   };
 }
+
+export function importFetchedPoll(poll) {
+  return dispatch => {
+    dispatch(importPolls([normalizePoll(poll)]));
+  };
+}