]> cat aescling's git repositories - mastodon.git/commitdiff
Add includes to Report#statuses (#3655)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Fri, 9 Jun 2017 13:07:02 +0000 (22:07 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 9 Jun 2017 13:07:02 +0000 (15:07 +0200)
app/models/report.rb

index 7c317490bd95eff510d6808721dc2ead029afe59..4d2552d30af43c7145f42b96552168fe0fb5c7a4 100644 (file)
@@ -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