Przeglądaj źródła

Add includes to Report#statuses (#3655)

master
Yamagishi Kazutoshi 7 lat temu
committed by Eugen Rochko
rodzic
commit
6384041d17
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      app/models/report.rb

+ 1
- 1
app/models/report.rb Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz