Skip to content

Commit 32ff78f

Browse files
authored
Fix index not being used in Status.reblogs_map (#11982)
Regression from #11623
1 parent 27719a4 commit 32ff78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def favourites_map(status_ids, account_id)
305305
end
306306

307307
def reblogs_map(status_ids, account_id)
308-
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 }
308+
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 }
309309
end
310310

311311
def mutes_map(conversation_ids, account_id)

0 commit comments

Comments
 (0)