2
0

Add FASP account search support (#34033)

This commit is contained in:
David Roetzel
2025-06-30 09:42:34 +02:00
committed by GitHub
parent 6d017dbf10
commit ac4b735c67
8 changed files with 130 additions and 3 deletions

View File

@@ -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