about summary refs log tree commit diff
path: root/app/services/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-05 04:10:01 +0100
committerGitHub <noreply@github.com>2019-03-05 04:10:01 +0100
commit4037b5eb1eca4858c9f1a93ccafb87a6c849e65b (patch)
tree81d4da3acf28ff835ae1a5de2e5dd28d4c7205c1 /app/services/activitypub
parenta198add83bb527c32fa0e01404338562b157da99 (diff)
Fix last_fetched_at not being set on polls (#10170)
Diffstat (limited to 'app/services/activitypub')
-rw-r--r--app/services/activitypub/fetch_remote_poll_service.rb1
1 files changed, 1 insertions, 0 deletions
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 }