|
@ -10,6 +10,8 @@ class ReportService < BaseService |
|
|
@comment = options.delete(:comment) || '' |
|
|
@comment = options.delete(:comment) || '' |
|
|
@options = options |
|
|
@options = options |
|
|
|
|
|
|
|
|
|
|
|
raise ActiveRecord::RecordNotFound if @target_account.suspended? |
|
|
|
|
|
|
|
|
create_report! |
|
|
create_report! |
|
|
notify_staff! |
|
|
notify_staff! |
|
|
forward_to_origin! if !@target_account.local? && ActiveModel::Type::Boolean.new.cast(@options[:forward]) |
|
|
forward_to_origin! if !@target_account.local? && ActiveModel::Type::Boolean.new.cast(@options[:forward]) |
|
|