Raise max search result limit to 66 in API.

staging
multiple creatures 2019-04-14 01:24:45 -05:00
parent 6c7f1691ee
commit f344170fd0
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class Api::V1::SearchController < Api::BaseController
include Authorization
RESULTS_LIMIT = 33
RESULTS_LIMIT = 66
before_action -> { doorkeeper_authorize! :read, :'read:search' }
before_action :require_user!

View File

@ -298,7 +298,7 @@ class Status < ApplicationRecord
after_find :limit_domain_visibility
class << self
def search_for(term, limit = 33, account = nil)
def search_for(term, limit = 66, account = nil)
pattern = sanitize_sql_like(term)
pattern = "#{pattern}"
scope = Status.where("tsv @@ plainto_tsquery('english', ?)", pattern)