Fix last_fetched_at not being set on polls (#10170)

th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 1321801577
commit 31a1fa3dcf

@ -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…
Cancel
Save