aboutsummaryrefslogtreecommitdiff
path: root/src/modules/statuses.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-06-20 13:02:04 +0000
committerShpuld Shpludson <shp@cock.li>2019-06-20 13:02:04 +0000
commit03a27c6d4864758d72f127138fa21961ef2b61fa (patch)
treedbcd99332591acb875221d8609dca74713bbecab /src/modules/statuses.js
parenteca533aab68322a6bb3b4fd91e62709c66daaff4 (diff)
parente5e9bb27f3a0825b695684a503ea7e5e75073734 (diff)
Merge branch 'fix/polls-to-module' into 'develop'
Move poll state handling to its own module See merge request pleroma/pleroma-fe!845
Diffstat (limited to 'src/modules/statuses.js')
-rw-r--r--src/modules/statuses.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js
index 5f09b8f5..235098d3 100644
--- a/src/modules/statuses.js
+++ b/src/modules/statuses.js
@@ -582,18 +582,6 @@ const statuses = {
]).then(([favoritedByUsers, rebloggedByUsers]) =>
commit('addFavsAndRepeats', { id, favoritedByUsers, rebloggedByUsers })
)
- },
- votePoll ({ rootState, commit }, { id, pollId, choices }) {
- return rootState.api.backendInteractor.vote(pollId, choices).then(poll => {
- commit('updateStatusWithPoll', { id, poll })
- return poll
- })
- },
- refreshPoll ({ rootState, commit }, { id, pollId }) {
- return rootState.api.backendInteractor.fetchPoll(pollId).then(poll => {
- commit('updateStatusWithPoll', { id, poll })
- return poll
- })
}
},
mutations