Add since_id param to feeds
This commit is contained in:
		
					parent
					
						
							
								a0f85774c4
							
						
					
				
			
			
				commit
				
					
						9fd3d7b6cd
					
				
			
		
					 4 changed files with 13 additions and 7 deletions
				
			
		|  | @ -45,10 +45,10 @@ class Api::V1::StatusesController < ApiController | |||
|   end | ||||
| 
 | ||||
|   def home | ||||
|     @statuses = Feed.new(:home, current_user.account).get(20, params[:max_id]).to_a | ||||
|     @statuses = Feed.new(:home, current_user.account).get(20, params[:max_id], params[:since_id]).to_a | ||||
|   end | ||||
| 
 | ||||
|   def mentions | ||||
|     @statuses = Feed.new(:mentions, current_user.account).get(20, params[:max_id]).to_a | ||||
|     @statuses = Feed.new(:mentions, current_user.account).get(20, params[:max_id], params[:since_id]).to_a | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue