Skip to content

Commit 90ed4a0

Browse files
Gargronhiyuki2578
authored andcommitted
Fix index not being used in Status.reblogs_map (mastodon#11982)
Regression from mastodon#11623
1 parent 589453d commit 90ed4a0

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
@@ -308,7 +308,7 @@ def favourites_map(status_ids, account_id)
308308
end
309309

310310
def reblogs_map(status_ids, account_id)
311-
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 }
311+
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 }
312312
end
313313

314314
def mutes_map(conversation_ids, account_id)

0 commit comments

Comments
 (0)