about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/services/after_block_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/after_block_service.rb b/app/services/after_block_service.rb
index b39c8b591..3ee7e2e56 100644
--- a/app/services/after_block_service.rb
+++ b/app/services/after_block_service.rb
@@ -45,8 +45,8 @@ class AfterBlockService < BaseService
 
   def defederate_favourites!
     favourites = @account.favourites.joins(:status).where(statuses: { account_id: @target_account.id })
-    favourites.select(:status_id).find_each do |favourite|
-      UnfavouriteWorker.perform_async(@account.id, favourite.status_id)
+    favourites.pluck(:status_id).each do |status_id|
+      UnfavouriteWorker.perform_async(@account.id, status_id)
     end
   end
 end