From da279df8ae029de80eb4709e1abdb95f132d5cfc Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 11 Dec 2024 11:32:03 +0100 Subject: [PATCH] Fix voting on polls (#33266) --- app/javascript/mastodon/api/polls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/api/polls.ts b/app/javascript/mastodon/api/polls.ts index 07cebca735..cb659986f5 100644 --- a/app/javascript/mastodon/api/polls.ts +++ b/app/javascript/mastodon/api/polls.ts @@ -6,5 +6,5 @@ export const apiGetPoll = (pollId: string) => export const apiPollVote = (pollId: string, choices: string[]) => apiRequestPost(`/v1/polls/${pollId}/votes`, { - data: { choices }, + choices, });