diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-10-21 22:59:21 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-10-21 22:59:21 -0500 |
commit | c36dd229f9dcb1d77c46d8db23297fc5781b4a97 (patch) | |
tree | 54ab4858ece859581905cbdaaaf6c3f84610d601 /app | |
parent | b1ce81006cf7e94214c8ed9abb65fdcdb260b1fc (diff) |
Pluck status IDs instead of using select()
Diffstat (limited to 'app')
-rw-r--r-- | app/services/after_block_service.rb | 4 |
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 |