diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-22 02:44:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 02:44:56 +0200 |
commit | 28de046b8bca87dab9d316c59a5afa3a0b24c5a6 (patch) | |
tree | 9032b0b286efe6572657efbf46f829936a78cf4b /app/chewy | |
parent | 025a06d3228fc518c91a98e617652655bb778e5f (diff) |
Get rid of Chewy order/limit warning (#8355)
Diffstat (limited to 'app/chewy')
-rw-r--r-- | app/chewy/statuses_index.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb index 8bf5b4af7..d3104172c 100644 --- a/app/chewy/statuses_index.rb +++ b/app/chewy/statuses_index.rb @@ -31,7 +31,7 @@ class StatusesIndex < Chewy::Index }, } - define_type ::Status.without_reblogs do + define_type ::Status.unscoped.without_reblogs do crutch :mentions do |collection| data = ::Mention.where(status_id: collection.map(&:id)).pluck(:status_id, :account_id) data.each.with_object({}) { |(id, name), result| (result[id] ||= []).push(name) } |