update fedi api to support multiple separate votes in same multiple choice poll

This commit is contained in:
kim 2025-02-19 20:43:49 +00:00
commit 701f6378d3
6 changed files with 142 additions and 44 deletions

View file

@ -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{