<% if @post_disapproval.errors.any? %>
  Danbooru.error("Error: " + <%= @post_disapproval.errors.full_messages.join("; ").to_json.html_safe %>);
<% else %>
  Danbooru.notice("Post was hidden");
  Danbooru.ModQueue.increment_processed();
<% end %>

$("#c-posts #approve").hide();
$("#c-posts #disapprove").hide();

$("#pending-approval-notice, .notice-flagged, .notice-appealed").hide();
$("#c-moderator-post-queues #post-<%= @post.id %>").hide();
