Skip to content

Commit

Permalink
Fix voting on polls (mastodon#33266)
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap authored Dec 11, 2024
1 parent a4560d9 commit da279df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/api/polls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const apiGetPoll = (pollId: string) =>

export const apiPollVote = (pollId: string, choices: string[]) =>
apiRequestPost<ApiPollJSON>(`/v1/polls/${pollId}/votes`, {
data: { choices },
choices,
});

0 comments on commit da279df

Please sign in to comment.