Moving some counter queries out of subqueries in the API
This commit is contained in:
parent
4b5b953d42
commit
fc90d38893
9 changed files with 62 additions and 9 deletions
|
@ -12,7 +12,7 @@ class SearchService < BaseService
|
|||
Account.search_for("#{username} #{domain}")
|
||||
end
|
||||
|
||||
results = results.limit(limit).with_counters
|
||||
results = results.limit(limit)
|
||||
|
||||
if resolve && results.empty? && !domain.nil?
|
||||
results = [FollowRemoteAccountService.new.call("#{username}@#{domain}")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue