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

@@ -118,6 +118,15 @@ RSpec.describe 'Search API' do
.to start_with('application/json')
end
end
context 'when `account_search` FASP is enabled', feature: :fasp do
it 'enqueues a retrieval job and adds a header to inform the client' do
get '/api/v2/search', headers: headers, params: params
expect(Fasp::AccountSearchWorker).to have_enqueued_sidekiq_job
expect(response.headers['Mastodon-Async-Refresh']).to be_present
end
end
end
end