diff options
author | Daggertooth <dev@monsterpit.net> | 2018-04-15 01:49:19 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:20 -0500 |
commit | 71066e4ad6e8775a7c00a2f55a61b1dcb1088e22 (patch) | |
tree | 7fcbae3f860aa6fafba7f54fd02e51cefed2a611 /app/models | |
parent | a607195dc01749022376017b9979f9d9beb9e201 (diff) |
Return more accounts in searches
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 70697db30..48d664934 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -402,7 +402,7 @@ class Account < ApplicationRecord DeliveryFailureTracker.filter(urls) end - def search_for(terms, limit = 10, offset = 0) + def search_for(terms, limit = 20, offset = 0) textsearch, query = generate_query_for_search(terms) sql = <<-SQL.squish @@ -422,7 +422,7 @@ class Account < ApplicationRecord records end - def advanced_search_for(terms, account, limit = 10, following = false, offset = 0) + def advanced_search_for(terms, account, limit = 20, following = false, offset = 0) textsearch, query = generate_query_for_search(terms) if following |