diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb index 35ced1d9af..2305ec685a 100644 --- a/app/chewy/statuses_index.rb +++ b/app/chewy/statuses_index.rb @@ -54,7 +54,7 @@ class StatusesIndex < Chewy::Index end crutch :status_references do |collection| - data = ::StatusReference.joins(:status).where(target_status_id: collection.map(&:id), status: { account: Account.local }).pluck(:status_id, :account_id) + data = ::StatusReference.joins(:status).where(target_status_id: collection.map(&:id), status: { account: Account.local }).pluck(:target_status_id, :account_id) data.each.with_object({}) { |(id, name), result| (result[id] ||= []).push(name) } end