diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-06-09 22:07:02 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-09 15:07:02 +0200 |
commit | 6384041d17041ff0dcaf2d72a728df5999ceb4b1 (patch) | |
tree | 59959973cc96b9c43d588fffb0f38037309bbae1 | |
parent | 140e73bc826a4c36c6f9370bc38d5d7adf9699e5 (diff) |
Add includes to Report#statuses (#3655)
-rw-r--r-- | app/models/report.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |