Browse Source

Add includes to Report#statuses (#3655)

closed-social-glitch-2
Yamagishi Kazutoshi 6 years ago
committed by Eugen Rochko
parent
commit
6384041d17
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/report.rb

+ 1
- 1
app/models/report.rb View 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

Loading…
Cancel
Save