From 71066e4ad6e8775a7c00a2f55a61b1dcb1088e22 Mon Sep 17 00:00:00 2001 From: Daggertooth Date: Sun, 15 Apr 2018 01:49:19 -0500 Subject: Return more accounts in searches --- app/models/account.rb | 4 ++-- 1 file 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 -- cgit