diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 2237b2c4e..6aea58907 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -43,7 +43,7 @@ <% end %> <% if post.is_banned? %> -
  • <%= link_to "Unban", unban_moderator_post_post_path(post), :method => :post %>
  • +
  • <%= link_to "Unban", unban_moderator_post_post_path(post), method: :post, "data-confirm": "Are you sure you want to unban this post?" %>
  • <% else %>
  • <%= link_to "Ban", confirm_ban_moderator_post_post_path(post) %>
  • <% end %>