Skip to content

Commit

Permalink
Fix suspending an already-limited domain (mastodon#25603)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Jun 27, 2023
1 parent ceca93d commit c7c6f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/domain_blocks/confirm_suspension.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/features/admin/domain_blocks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# 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

Expand All @@ -72,7 +72,7 @@
# 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

0 comments on commit c7c6f02

Please sign in to comment.