about summary refs log tree commit diff
path: root/app/services/approve_appeal_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/approve_appeal_service.rb')
-rw-r--r--app/services/approve_appeal_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/approve_appeal_service.rb b/app/services/approve_appeal_service.rb
index 37a08b46e..96aaaa7d0 100644
--- a/app/services/approve_appeal_service.rb
+++ b/app/services/approve_appeal_service.rb
@@ -52,8 +52,9 @@ class ApproveAppealService < BaseService
   end
 
   def undo_mark_statuses_as_sensitive!
+    representative_account = Account.representative
     @strike.statuses.includes(:media_attachments).each do |status|
-      UpdateStatusService.new.call(status, @current_account.id, sensitive: false) if status.with_media?
+      UpdateStatusService.new.call(status, representative_account.id, sensitive: false) if status.with_media?
     end
   end