From 69dc56b5d0a03398835100512b34d4e36cc8da62 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 9 Jun 2017 22:07:02 +0900 Subject: [PATCH] Add includes to Report#statuses (#3655) --- app/models/report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/report.rb b/app/models/report.rb index 7c317490bd..4d2552d30a 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -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