Adding hashtag model
This commit is contained in:
		
					parent
					
						
							
								6471a548fe
							
						
					
				
			
			
				commit
				
					
						62292797ec
					
				
			
		
					 11 changed files with 60 additions and 9 deletions
				
			
		|  | @ -15,12 +15,12 @@ class Api::V1::StatusesController < ApiController | |||
|   end | ||||
| 
 | ||||
|   def reblogged_by | ||||
|     @accounts = @status.reblogs.includes(:account).limit(40).map(&:account) | ||||
|     @accounts = @status.reblogged_by(40) | ||||
|     render action: :accounts | ||||
|   end | ||||
| 
 | ||||
|   def favourited_by | ||||
|     @accounts = @status.favourites.includes(:account).limit(40).map(&:account) | ||||
|     @accounts = @status.favourited_by(40) | ||||
|     render action: :accounts | ||||
|   end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue