diff options
-rw-r--r-- | app/controllers/api/v1/search_controller.rb | 2 | ||||
-rw-r--r-- | app/models/status.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 194e7c810..37b45221b 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -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! diff --git a/app/models/status.rb b/app/models/status.rb index 5410c3098..506dca39a 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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) |