summaryrefslogtreecommitdiff
path: root/internal/processing/polls/vote.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/polls/vote.go')
-rw-r--r--internal/processing/polls/vote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/polls/vote.go b/internal/processing/polls/vote.go
index 5bc523978..c970fe106 100644
--- a/internal/processing/polls/vote.go
+++ b/internal/processing/polls/vote.go
@@ -96,11 +96,11 @@ func (p *Processor) PollVote(ctx context.Context, requester *gtsmodel.Account, p
poll.IncrementVotes(choices)
// Enqueue worker task to handle side-effects of user poll vote(s).
- p.state.Workers.EnqueueClientAPI(ctx, messages.FromClientAPI{
+ p.state.Workers.Client.Queue.Push(&messages.FromClientAPI{
APActivityType: ap.ActivityCreate,
APObjectType: ap.ActivityQuestion,
GTSModel: vote, // the vote choices
- OriginAccount: requester,
+ Origin: requester,
})
// Return converted API model poll.