mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-27 13:16:07 +00:00
[Glitch] Fix voting on polls
Port da279df8ae to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user