don't try to apply filters when there's not any set

master
multiple creatures 2020-01-10 13:44:58 -06:00
parent a29fb04e7c
commit e13202c114
1 changed files with 1 additions and 1 deletions

View File

@ -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