Add FASP follow recommendation support (#34964)
This commit is contained in:
parent
ad32834ccd
commit
b2506478ba
7 changed files with 136 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue