diff options
author | 2025-02-20 10:13:07 +0000 | |
---|---|---|
committer | 2025-02-20 11:13:07 +0100 | |
commit | a03a35a5d6c86ef85d66bae501daaa1cd8c47c2e (patch) | |
tree | 78d745437a15d4db3ea37965fa6a40f5156eb482 /internal/processing/polls/vote.go | |
parent | [chore] Step minio down to 7.0.85 (#3808) (diff) | |
download | gotosocial-a03a35a5d6c86ef85d66bae501daaa1cd8c47c2e.tar.xz |
[bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809)
Diffstat (limited to 'internal/processing/polls/vote.go')
-rw-r--r-- | internal/processing/polls/vote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/polls/vote.go b/internal/processing/polls/vote.go index c970fe106..6585793cd 100644 --- a/internal/processing/polls/vote.go +++ b/internal/processing/polls/vote.go @@ -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{ |