Skip to content

Commit f7ed0f6

Browse files
Gargronhiyuki2578
authored andcommitted
Fix last_fetched_at not being set on polls (mastodon#10170)
1 parent 52beeb0 commit f7ed0f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/services/activitypub/fetch_remote_poll_service.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def call(poll, on_behalf_of = nil)
3333
poll.votes.delete_all if latest_options != poll.options
3434

3535
poll.update!(
36+
last_fetched_at: Time.now.utc,
3637
expires_at: expires_at,
3738
options: latest_options,
3839
cached_tallies: items.map { |item| item.dig('replies', 'totalItems') || 0 }

0 commit comments

Comments
 (0)