Add includes to Report#statuses (#3655)

Tento commit je obsažen v:
Yamagishi Kazutoshi
2017-06-09 22:07:02 +09:00
odevzdal Eugen Rochko
rodič 140e73bc82
revize 6384041d17

Zobrazit soubor

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