diff options
Diffstat (limited to 'app/models/report.rb')
-rw-r--r-- | app/models/report.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/report.rb b/app/models/report.rb index f55fb6d3e..dd123fc15 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -24,6 +24,10 @@ class Report < ApplicationRecord validates :comment, length: { maximum: 1000 } + def object_type + :flag + end + def statuses Status.where(id: status_ids).includes(:account, :media_attachments, :mentions) end |