소스 검색

Fix index not being used in Status.reblogs_map (#11982)

Regression from #11623
master^2
Eugen Rochko 4 년 전
committed by GitHub
부모
커밋
32ff78f749
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      app/models/status.rb

+ 1
- 1
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)


불러오는 중...
취소
저장