Raise max search result limit to 66 in API.
parent
6c7f1691ee
commit
f344170fd0
|
@ -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!
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue