Add includes to Report#statuses (#3655)
This commit is contained in:
		
							parent
							
								
									140e73bc82
								
							
						
					
					
						commit
						6384041d17
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,7 @@ class Report < ApplicationRecord
 | 
			
		|||
  scope :resolved,   -> { where(action_taken: true) }
 | 
			
		||||
 | 
			
		||||
  def statuses
 | 
			
		||||
    Status.where(id: status_ids)
 | 
			
		||||
    Status.where(id: status_ids).includes(:account, :media_attachments, :mentions)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def media_attachments
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue