Return more accounts in searches

staging
Daggertooth 2018-04-15 01:49:19 -05:00 committed by multiple creatures
parent a607195dc0
commit 71066e4ad6
1 changed files with 2 additions and 2 deletions

View File

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