Add FASP follow recommendation support (#34964)

This commit is contained in:
David Roetzel authored and GitHub committed 2025-06-16 10:43:27 +00:00
1 parent ad32834ccd
commit b2506478ba
7 files changed
+136

No files matched your search

+9
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