Unverified Commit 4037b5eb authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix last_fetched_at not being set on polls (#10170)

parent a198add8
......@@ -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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment