about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-28 01:33:02 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-27 13:38:04 -0600
commit3acb7ff30af0062fb0389413c723d08c541790e4 (patch)
tree438a7f00fa28187f068a0e1a0460085d2edd8acc /app
parentb54e626d3e9078f49ca45573604d6c88a1734917 (diff)
Fix index not being used in Status.reblogs_map (#11982)
Regression from #11623
Diffstat (limited to 'app')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 0d6982338..6cb30e1f0 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -528,7 +528,7 @@ class Status < ApplicationRecord
     end
 
     def reblogs_map(status_ids, account_id)
-      select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).reorder(nil).each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
+      select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).unscoped.each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
     end
 
     def mutes_map(conversation_ids, account_id)