mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix index not being used in Status.reblogs_map (#11982)
Regression from #11623
This commit is contained in:
parent
27719a4001
commit
32ff78f749
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue