mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-03 13:33:32 -05:00
[Glitch] Fix voting on polls
Port da279df8ae029de80eb4709e1abdb95f132d5cfc to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
9e7a7c713f
commit
e5dc03a353
@ -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,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user