From e13202c114eeb7584e776a073a41d9e57ae31e02 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 10 Jan 2020 13:44:58 -0600 Subject: don't try to apply filters when there's not any set --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit