2
0

Add FASP follow recommendation support (#34964)

This commit is contained in:
David Roetzel
2025-06-16 12:43:27 +02:00
committed by GitHub
parent ad32834ccd
commit b2506478ba
7 changed files with 136 additions and 0 deletions

View File

@@ -34,5 +34,14 @@ RSpec.describe 'Suggestions API' do
end
)
end
context 'when `follow_recommendation` FASP is enabled', feature: :fasp do
it 'enqueues a retrieval job and adds a header to inform the client' do
get '/api/v2/suggestions', headers: headers
expect(Fasp::FollowRecommendationWorker).to have_enqueued_sidekiq_job
expect(response.headers['Mastodon-Async-Refresh']).to be_present
end
end
end
end