mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 21:26:52 +00:00
Fix last_fetched_at not being set on polls (#10170)
This commit is contained in:
parent
a198add83b
commit
4037b5eb1e
|
@ -33,6 +33,7 @@ class ActivityPub::FetchRemotePollService < BaseService
|
|||
poll.votes.delete_all if latest_options != poll.options
|
||||
|
||||
poll.update!(
|
||||
last_fetched_at: Time.now.utc,
|
||||
expires_at: expires_at,
|
||||
options: latest_options,
|
||||
cached_tallies: items.map { |item| item.dig('replies', 'totalItems') || 0 }
|
||||
|
|
Loading…
Reference in a new issue