AccountFilter to AccountSearchFilter

This commit is contained in:
noellabo 2020-08-30 05:08:09 +09:00
parent 46d05ea6e8
commit acb22de646
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AccountFilter
class AccountSearchFilter
attr_reader :target_account, :account
def initialize(target_account, account, preloaded_relations = {})

View file

@ -23,7 +23,7 @@ class AccountFullTextSearchService < BaseService
account_domains = results.map(&:domain).uniq.compact
preloaded_relations = relations_map_for_account(@account, account_ids, account_domains)
results.reject { |target_account| AccountFilter.new(target_account, @account, preloaded_relations).filtered? }
results.reject { |target_account| AccountSearchFilter.new(target_account, @account, preloaded_relations).filtered? }
rescue Faraday::ConnectionFailed, Parslet::ParseFailed
[]
end