From 38f78fd1a2045a6641d76b12f7145f39de10ae53 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 21 Aug 2020 00:47:28 -0500 Subject: [Federation, Revise] Add simple retries to ActivityPub::ProcessCollectionItemsService --- app/services/activitypub/fetch_featured_collection_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/activitypub/fetch_featured_collection_service.rb') diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb index a77c03bed..0a20f5edc 100644 --- a/app/services/activitypub/fetch_featured_collection_service.rb +++ b/app/services/activitypub/fetch_featured_collection_service.rb @@ -44,7 +44,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService StatusPin.where(account: @account, status_id: to_remove).delete_all unless to_remove.empty? to_add.each do |status_id| - StatusPin.create!(account: @account, status_id: status_id) + StatusPin.create(account: @account, status_id: status_id) end end -- cgit