commit: 6384041d17041ff0dcaf2d72a728df5999ceb4b1
parent: 140e73bc826a4c36c6f9370bc38d5d7adf9699e5
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Fri, 9 Jun 2017 22:07:02 +0900
Add includes to Report#statuses (#3655)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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