about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 13:44:58 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 13:44:58 -0600
commite13202c114eeb7584e776a073a41d9e57ae31e02 (patch)
treef4b8acf6aa7717e1f3ed3856091557e11f6ff588 /app/models/status.rb
parenta29fb04e7c1c7a719a29f40da275d4981ef2ebb5 (diff)
don't try to apply filters when there's not any set
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index f5f51779f..515553708 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -578,7 +578,7 @@ class Status < ApplicationRecord
       query = query.in_chosen_languages(account) if account.chosen_languages.present?
       query = query.reply_not_excluded_by_account(account) unless tag_timeline
       query = query.mention_not_excluded_by_account(account)
-      unless account.custom_filters.nil?
+      unless account.custom_filters.empty?
         if account.user.invert_filters
           query = query.search_filtered_by_account(account.id)
         else