mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] actually decrement votes during poll vote delete ... (#2344)
This commit is contained in:
@@ -478,7 +478,7 @@ func (p *pollDB) DeletePollVoteBy(ctx context.Context, pollID string, accountID
|
||||
}
|
||||
|
||||
// Decrement votes for choices.
|
||||
poll.IncrementVotes(choices)
|
||||
poll.DecrementVotes(choices)
|
||||
|
||||
// Finally, update the poll entry.
|
||||
_, err := tx.NewUpdate().
|
||||
|
Reference in New Issue
Block a user