Support min_id-based pagination in REST API (#8736)
* Allow min_id pagination in Feed#get * Add min_id pagination to home and list timeline APIs * Add min_id pagination to account statuses, public and tag APIs * Remove unused stub in reports API * Use min_id pagination in notifications, favourites, and fix order * Fix HomeFeed#from_database not using paginate_by_id
This commit is contained in:
		@@ -64,7 +64,7 @@ RSpec.describe Api::V1::FavouritesController, type: :controller do
 | 
			
		||||
          get :index, params: { limit: 1 }
 | 
			
		||||
 | 
			
		||||
          expect(response.headers['Link'].find_link(['rel', 'next']).href).to eq "http://test.host/api/v1/favourites?limit=1&max_id=#{favourite.id}"
 | 
			
		||||
          expect(response.headers['Link'].find_link(['rel', 'prev']).href).to eq "http://test.host/api/v1/favourites?limit=1&since_id=#{favourite.id}"
 | 
			
		||||
          expect(response.headers['Link'].find_link(['rel', 'prev']).href).to eq "http://test.host/api/v1/favourites?limit=1&min_id=#{favourite.id}"
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it 'does not add pagination headers if not necessary' do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user