AccountFilter to AccountSearchFilter
This commit is contained in:
parent
46d05ea6e8
commit
acb22de646
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AccountFilter
|
||||
class AccountSearchFilter
|
||||
attr_reader :target_account, :account
|
||||
|
||||
def initialize(target_account, account, preloaded_relations = {})
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue