mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 16:32:25 -05:00
[bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809)
This commit is contained in:
parent
2f5629143d
commit
a03a35a5d6
6 changed files with 142 additions and 44 deletions
|
|
@ -93,7 +93,7 @@ func (p *Processor) PollVote(ctx context.Context, requester *gtsmodel.Account, p
|
|||
// Before enqueuing it, increment the poll
|
||||
// vote counts on the copy attached to the
|
||||
// PollVote (that we also later return).
|
||||
poll.IncrementVotes(choices)
|
||||
poll.IncrementVotes(choices, true)
|
||||
|
||||
// Enqueue worker task to handle side-effects of user poll vote(s).
|
||||
p.state.Workers.Client.Queue.Push(&messages.FromClientAPI{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue