]> cat aescling's git repositories - mastodon.git/commitdiff
Fix method of the DELETE DATA button (#14855)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Mon, 21 Sep 2020 18:37:19 +0000 (03:37 +0900)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 18:37:19 +0000 (20:37 +0200)
app/views/admin/accounts/show.html.haml

index 2c48692b7ba330dd4e1d8d4be80c450c78931b4f..f0a216f6b8f622ed7be2171caf3371ff3e8acc18 100644 (file)
     = link_to t('admin.accounts.undo_suspension'), unsuspend_admin_account_path(@account.id), method: :post, class: 'button' if can?(:unsuspend, @account)
 
     - if @deletion_request.present?
-      = link_to t('admin.accounts.delete'), admin_account_path(@account.id), method: :destroy, class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, @account)
+      = link_to t('admin.accounts.delete'), admin_account_path(@account.id), method: :delete, class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, @account)
   - else
     %div.action-buttons
       %div