Merge commit 'c357a7f8d697ede4df4be74456b0497118c9d049' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2025-06-30 17:52:22 +02:00
commit 2eec4da8fc
154 files changed
+1168 -826

No files matched your search

+6
View File
@@ -178,6 +178,12 @@ class AccountSearchService < BaseService
'search.backend' => Chewy.enabled? ? 'elasticsearch' : 'database'
)
# Trigger searching accounts using providers.
# This will not return any immediate results but has the
# potential to fill the local database with relevant
# accounts for the next time the search is performed.
Fasp::AccountSearchWorker.perform_async(@query) if options[:query_fasp]
search_service_results.compact.uniq.tap do |results|
span.set_attribute('search.results.count', results.size)
end
+3 -1
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