Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-02-02 21:08:58 +0300
committerJonne Haß <me@jhass.eu>2020-02-02 23:26:33 +0300
commit884de9008f804218e6adc3423f7f6f2acba3b5e6 (patch)
tree59f3d253460e1c9f317be6b32eec651b99929cd2 /app/controllers
parentb1f357849bbc2fb2b8fce620e4c265e9538e822c (diff)
API: rename poll_answer_id to poll_answer in post interactions vote endpoint
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/post_interactions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/post_interactions_controller.rb b/app/controllers/api/v1/post_interactions_controller.rb
index 173bd3292..7b3f5237f 100644
--- a/app/controllers/api/v1/post_interactions_controller.rb
+++ b/app/controllers/api/v1/post_interactions_controller.rb
@@ -58,7 +58,7 @@ module Api
def vote
post = find_post
begin
- poll_vote = poll_service.vote(post.id, params[:poll_answer_id])
+ poll_vote = poll_service.vote(post.id, params[:poll_answer])
rescue ActiveRecord::RecordNotFound
# This, but not the find_post above, should return a 422,
# we just keep poll_vote nil so it goes into the else below