diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index 4a7e9aa1d..fdb17ab93 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -147,7 +147,9 @@
  • <%= link_to "Move favorites", confirm_move_favorites_moderator_post_post_path(post_id: @post.id) %>
  • <% end %> - <% if !@post.is_deleted? && policy(@post).delete? %> + <% if @post.is_deleted? && @post.is_approvable? %> +
  • <%= link_to "Undelete", post_approvals_path(post_id: @post.id), remote: true, method: :post, "data-shortcut": "shift+o", "data-confirm": "Are you sure you want to undelete this post?" %>
  • + <% elsif !@post.is_deleted? && policy(@post).delete? %>
  • <%= link_to "Delete", @post, method: :delete, remote: true %>
  • <% end %>