about summary refs log tree commit diff
path: root/app/chewy
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-05-28 13:44:57 +0200
committerThibaut Girka <thib@sitedethib.com>2020-05-28 13:44:57 +0200
commitef6bfaf12ed9ac71ea9912c79dcbad8b2b6ea260 (patch)
tree0e381b3df9405d665dc22fd5081de913bfd83907 /app/chewy
parentead09f5ddc73034fcd573b459868dd1ca13b647a (diff)
parent57e5e656877604f813bfe511f7b248326ad36ad2 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/chewy')
-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 bec9ed88b..d4b05fca9 100644
--- a/app/chewy/statuses_index.rb
+++ b/app/chewy/statuses_index.rb
@@ -33,7 +33,7 @@ class StatusesIndex < Chewy::Index
 
   define_type ::Status.unscoped.kept.without_reblogs.includes(:media_attachments), delete_if: ->(status) { status.searchable_by.empty? } do
     crutch :mentions do |collection|
-      data = ::Mention.where(status_id: collection.map(&:id)).where(account: Account.local).pluck(:status_id, :account_id)
+      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) }
     end