Fix moderator leak in undo_mark_statuses_as_sensitive (#18525)
Signed-off-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: 40826d <74816220+40826d@users.noreply.github.com>lolsob-rspec
parent
b264197a1d
commit
e871725668
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue