about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-14 18:10:35 +0200
committerGitHub <noreply@github.com>2020-07-14 18:10:35 +0200
commit4abe3be321a620641b9a316b168ce754d7438eff (patch)
tree2ec72381f94c258a707268b31df2cadf0efcadac /app
parent98b3b80d6bc6b8549448bb7fadc1449ba68a52ea (diff)
Change `tootctl search deploy` algorithm (#14300)
Diffstat (limited to 'app')
-rw-r--r--app/chewy/statuses_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb
index d4b05fca9..47cb856ea 100644
--- a/app/chewy/statuses_index.rb
+++ b/app/chewy/statuses_index.rb
@@ -31,7 +31,7 @@ class StatusesIndex < Chewy::Index
     },
   }
 
-  define_type ::Status.unscoped.kept.without_reblogs.includes(:media_attachments), delete_if: ->(status) { status.searchable_by.empty? } do
+  define_type ::Status.unscoped.kept.without_reblogs.includes(:media_attachments, :preloadable_poll) do
     crutch :mentions do |collection|
       data = ::Mention.where(status_id: collection.map(&:id)).where(account: Account.local, silent: false).pluck(:status_id, :account_id)
       data.each.with_object({}) { |(id, name), result| (result[id] ||= []).push(name) }