Add includes to Report#statuses (#3655)

th-downstream
Yamagishi Kazutoshi 8 years ago committed by Eugen Rochko
parent 0e2b04d920
commit 69dc56b5d0

@ -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

Loading…
Cancel
Save