summaryrefslogtreecommitdiff
path: root/internal/processing/polls
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-02-09 15:24:49 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-09 14:24:49 +0000
commite890169e6f151f668580398685c2dbf3c4b780ff (patch)
tree3d3be4348eee2c71288c93772cfcaa128aabd71b /internal/processing/polls
parent[chore] Move `DoOnce` func wrapper to util (#2613) (diff)
downloadgotosocial-e890169e6f151f668580398685c2dbf3c4b780ff.tar.xz
use pointer for freshness window (#2614)
Diffstat (limited to 'internal/processing/polls')
-rw-r--r--internal/processing/polls/poll.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/polls/poll.go b/internal/processing/polls/poll.go
index 19cf555e5..fe8fc71c5 100644
--- a/internal/processing/polls/poll.go
+++ b/internal/processing/polls/poll.go
@@ -53,7 +53,7 @@ func (p *Processor) getTargetPoll(ctx context.Context, requester *gtsmodel.Accou
func() (*gtsmodel.Status, error) {
return p.state.DB.GetStatusByPollID(ctx, targetID)
},
- true, // refresh
+ nil, // default freshness
)
if errWithCode != nil {
return nil, errWithCode