Add FASP account search support (#34033)
This commit is contained in:
@@ -11,6 +11,7 @@ class SearchService < BaseService
|
||||
@offset = options[:type].blank? ? 0 : options[:offset].to_i
|
||||
@resolve = options[:resolve] || false
|
||||
@following = options[:following] || false
|
||||
@query_fasp = options[:query_fasp] || false
|
||||
|
||||
default_results.tap do |results|
|
||||
next if @query.blank? || @limit.zero?
|
||||
@@ -36,7 +37,8 @@ class SearchService < BaseService
|
||||
offset: @offset,
|
||||
use_searchable_text: true,
|
||||
following: @following,
|
||||
start_with_hashtag: @query.start_with?('#')
|
||||
start_with_hashtag: @query.start_with?('#'),
|
||||
query_fasp: @options[:query_fasp]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user