Fix: 投稿にNGワードが含まれる場合、投稿のモデレーションができなくなる場合がある問題 (#685)
This commit is contained in:
parent
4a9f549dd2
commit
e7aececf5e
5 changed files with 23 additions and 8 deletions
|
@ -56,14 +56,14 @@ class ApproveAppealService < BaseService
|
|||
def undo_mark_statuses_as_sensitive!
|
||||
representative_account = Account.representative
|
||||
@strike.statuses.includes(:media_attachments).find_each do |status|
|
||||
UpdateStatusService.new.call(status, representative_account.id, sensitive: false) if status.with_media?
|
||||
UpdateStatusService.new.call(status, representative_account.id, sensitive: false, bypass_validation: true) if status.with_media?
|
||||
end
|
||||
end
|
||||
|
||||
def undo_force_cw!
|
||||
representative_account = Account.representative
|
||||
@strike.statuses.includes(:media_attachments).find_each do |status|
|
||||
UpdateStatusService.new.call(status, representative_account.id, spoiler_text: '')
|
||||
UpdateStatusService.new.call(status, representative_account.id, spoiler_text: '', bypass_validation: true) if status.spoiler_text.present?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue