Add includes to Report#statuses (#3655)

lolsob-rspec
Yamagishi Kazutoshi 2017-06-09 22:07:02 +09:00 committed by Eugen Rochko
parent 0e2b04d920
commit 69dc56b5d0
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Report < ApplicationRecord
scope :resolved, -> { where(action_taken: true) } scope :resolved, -> { where(action_taken: true) }
def statuses def statuses
Status.where(id: status_ids) Status.where(id: status_ids).includes(:account, :media_attachments, :mentions)
end end
def media_attachments def media_attachments