about summary refs log tree commit diff
path: root/app/services/report_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/report_service.rb')
-rw-r--r--app/services/report_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/report_service.rb b/app/services/report_service.rb
index 9d9c7d6c9..bc0a8b464 100644
--- a/app/services/report_service.rb
+++ b/app/services/report_service.rb
@@ -10,6 +10,8 @@ class ReportService < BaseService
     @comment        = options.delete(:comment) || ''
     @options        = options
 
+    raise ActiveRecord::RecordNotFound if @target_account.suspended?
+
     create_report!
     notify_staff!
     forward_to_origin! if !@target_account.local? && ActiveModel::Type::Boolean.new.cast(@options[:forward])