mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2025-01-10 08:12:20 +01:00
Fix empty votes arbitrarily increasing voters count in polls (#18526)
This commit is contained in:
parent
976cd6413e
commit
1ff4877945
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ class VoteService < BaseService
|
|||
include Lockable
|
||||
|
||||
def call(account, poll, choices)
|
||||
return if choices.empty?
|
||||
|
||||
authorize_with account, poll, :vote?
|
||||
|
||||
@account = account
|
||||
|
|
Loading…
Reference in a new issue