From: Yamagishi Kazutoshi Date: Fri, 9 Jun 2017 13:07:02 +0000 (+0900) Subject: Add includes to Report#statuses (#3655) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6384041d17041ff0dcaf2d72a728df5999ceb4b1;p=mastodon.git Add includes to Report#statuses (#3655) --- diff --git a/app/models/report.rb b/app/models/report.rb index 7c317490b..4d2552d30 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