~cytrogen/masto-fe

c7c6f02ae61cdbaa8248f6264b22e1ce11aa1f35 — Claire 2 years ago ceca93d
Fix suspending an already-limited domain (#25603)

M app/views/admin/domain_blocks/confirm_suspension.html.haml => app/views/admin/domain_blocks/confirm_suspension.html.haml +1 -1
@@ 4,7 4,7 @@
- content_for :page_title do
  = t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain))

= simple_form_for @domain_block, url: admin_domain_blocks_path(@domain_block) do |f|
= simple_form_for @domain_block, url: admin_domain_blocks_path, method: :post do |f|

  %p.hint= t('.preamble_html', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
  %ul.hint

M spec/features/admin/domain_blocks_spec.rb => spec/features/admin/domain_blocks_spec.rb +2 -2
@@ 53,7 53,7 @@ describe 'blocking domains through the moderation interface' do
      # Confirming updates the block
      click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm')

      expect(domain_block.reload.severity).to eq 'silence'
      expect(domain_block.reload.severity).to eq 'suspend'
    end
  end



@@ 72,7 72,7 @@ describe 'blocking domains through the moderation interface' do
      # Confirming updates the block
      click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm')

      expect(domain_block.reload.severity).to eq 'silence'
      expect(domain_block.reload.severity).to eq 'suspend'
    end
  end
end