From: Eugen Rochko Date: Tue, 5 Mar 2019 03:10:01 +0000 (+0100) Subject: Fix last_fetched_at not being set on polls (#10170) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4037b5eb1eca4858c9f1a93ccafb87a6c849e65b;p=mastodon.git Fix last_fetched_at not being set on polls (#10170) --- diff --git a/app/services/activitypub/fetch_remote_poll_service.rb b/app/services/activitypub/fetch_remote_poll_service.rb index c87a2f84d..1dd587d73 100644 --- a/app/services/activitypub/fetch_remote_poll_service.rb +++ b/app/services/activitypub/fetch_remote_poll_service.rb @@ -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 }