about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-28 01:33:02 +0200
committerGitHub <noreply@github.com>2019-09-28 01:33:02 +0200
commit32ff78f7496012d9fca5b1ad13cddb650184b5ec (patch)
treeb9cc08f51070717705a2ebc618463524c5a3cbf3 /app/models/status.rb
parent27719a4001db8b4804ae301f0f262c7bce8cbcfa (diff)
Fix index not being used in Status.reblogs_map (#11982)
Regression from #11623
Diffstat (limited to 'app/models/status.rb')
-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 471bb03b4..6afaa14d1 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -305,7 +305,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)