Add pagination by max_id instead of offset/limit
This commit is contained in:
		
					parent
					
						
							
								02e4fb2e06
							
						
					
				
			
			
				commit
				
					
						12559b01ea
					
				
			
		
					 7 changed files with 19 additions and 10 deletions
				
			
		|  | @ -15,7 +15,7 @@ class Api::AccountsController < ApiController | |||
|   end | ||||
| 
 | ||||
|   def statuses | ||||
|     @statuses = @account.statuses.with_includes.with_counters.order('created_at desc') | ||||
|     @statuses = @account.statuses.with_includes.with_counters.paginate_by_max_id(20, params[:max_id]) | ||||
|   end | ||||
| 
 | ||||
|   def follow | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue