about summary refs log tree commit diff
path: root/app/chewy
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-05-28 14:53:36 +0200
committerGitHub <noreply@github.com>2020-05-28 14:53:36 +0200
commit39aa6301eb874963f214215d27f9ef5874c4d236 (patch)
treec3687b1e83926abf052d58333a0047585f2df2cf /app/chewy
parentead09f5ddc73034fcd573b459868dd1ca13b647a (diff)
parent0b01492276f47bc8df8c1679b705ce33b3639fcf (diff)
Merge pull request #1337 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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