summaryrefslogtreecommitdiff
path: root/internal/processing/polls
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-01-03 17:42:58 +0000
committerLibravatar GitHub <noreply@github.com>2024-01-03 18:42:58 +0100
commit511ad97fe766051081a27152c22881aa43fb147c (patch)
tree37685b347e3c88e6a0c8d5940ad7d16939e82d8a /internal/processing/polls
parent[chore]: Bump github.com/minio/minio-go/v7 from 7.0.65 to 7.0.66 (#2467) (diff)
downloadgotosocial-511ad97fe766051081a27152c22881aa43fb147c.tar.xz
[bugfix] fix check for closed poll to account for non-zero closed time but in the future (#2486)
Diffstat (limited to 'internal/processing/polls')
-rw-r--r--internal/processing/polls/vote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/polls/vote.go b/internal/processing/polls/vote.go
index c4a8a12a4..5bc523978 100644
--- a/internal/processing/polls/vote.go
+++ b/internal/processing/polls/vote.go
@@ -44,7 +44,7 @@ func (p *Processor) PollVote(ctx context.Context, requester *gtsmodel.Account, p
return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text)
// Poll has already closed, no more voting!
- case !poll.ClosedAt.IsZero():
+ case poll.Closed():
const text = "poll already closed"
return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text)